mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 06:10:34 +08:00
fix _num_faces_per_mesh in join_batch
Summary: As reported in https://github.com/facebookresearch/pytorch3d/pull/1100, _num_faces_per_mesh was changing in the source mesh in join_batch. This affects both TexturesUV and TexturesAtlas Reviewed By: nikhilaravi Differential Revision: D34643675 fbshipit-source-id: d67bdaca7278f18a76cfb15ba59d0ea85575bd36
This commit is contained in:
committed by
Facebook GitHub Bot
parent
16d0aa82c1
commit
4a1f176054
@@ -569,7 +569,7 @@ class TexturesAtlas(TexturesBase):
|
||||
|
||||
atlas_list = []
|
||||
atlas_list += self.atlas_list()
|
||||
num_faces_per_mesh = self._num_faces_per_mesh
|
||||
num_faces_per_mesh = self._num_faces_per_mesh.copy()
|
||||
for tex in textures:
|
||||
atlas_list += tex.atlas_list()
|
||||
num_faces_per_mesh += tex._num_faces_per_mesh
|
||||
@@ -1073,7 +1073,7 @@ class TexturesUV(TexturesBase):
|
||||
faces_uvs_list += self.faces_uvs_list()
|
||||
verts_uvs_list += self.verts_uvs_list()
|
||||
maps_list += self.maps_list()
|
||||
num_faces_per_mesh = self._num_faces_per_mesh
|
||||
num_faces_per_mesh = self._num_faces_per_mesh.copy()
|
||||
for tex in textures:
|
||||
verts_uvs_list += tex.verts_uvs_list()
|
||||
faces_uvs_list += tex.faces_uvs_list()
|
||||
|
||||
Reference in New Issue
Block a user