suppress errors in vision - batch 1

Reviewed By: pradeep90

Differential Revision: D22628883

fbshipit-source-id: a19c271b4025c0e3c61408604a7e0f9fbcbdfa5b
This commit is contained in:
generatedunixname89002005307016
2020-07-20 17:12:35 -07:00
committed by Facebook GitHub Bot
parent 8b70aa1e85
commit 7cb9d8ea86
12 changed files with 21 additions and 1 deletions

View File

@@ -1485,7 +1485,6 @@ def join_meshes_as_batch(meshes: List[Meshes], include_textures: bool = True):
# Meshes objects can be iterated and produce single Meshes. We avoid
# letting join_meshes_as_batch(mesh1, mesh2) silently do the wrong thing.
raise ValueError("Wrong first argument to join_meshes_as_batch.")
# pyre-fixme[10]: Name `mesh` is used but not defined.
verts = [v for mesh in meshes for v in mesh.verts_list()]
faces = [f for mesh in meshes for f in mesh.faces_list()]
if len(meshes) == 0 or not include_textures: