• Nikhila Ravi's avatar
    textures dimension check · ef162539
    Nikhila Ravi authored
    Summary:
    When textures are set on `Meshes` we need to check if the dimensions actually match that of the verts/faces in the mesh. There was a github issue where someone tried to set the attribute after construction of the `Meshes` object and ran into an error when trying to sample textures.
    
    The desired usage is to initialize the class with the textures (not set an attribute afterwards) but in any case we need to check the dimensions match before sampling textures.
    
    Reviewed By: bottler
    
    Differential Revision: D29020249
    
    fbshipit-source-id: 9fb8a5368b83c9ec53652df92b96fc8b2613f591
    ef162539
test_texturing.py 42.3 KB