File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ def _mesh_subsets_obj(
132132
133133 for material_id in unique_material_ids :
134134 face_indices = np .where (material_ids_array == material_id )[0 ]
135- face_list_by_material [int (material_id )] = face_indices . tolist ( )
135+ face_list_by_material [int (material_id )] = Vt . IntArray . FromNumpy ( face_indices )
136136
137137 stage = mesh .GetPrim ().GetStage ()
138138
@@ -144,7 +144,7 @@ def _mesh_subsets_obj(
144144 subset_name = f"GeomSubset_{ (i + 1 ):03d} "
145145
146146 geom_subset = UsdGeom .Subset .Define (stage , mesh .GetPrim ().GetPath ().AppendChild (subset_name ))
147- geom_subset .GetIndicesAttr ().Set (Vt . IntArray ( face_indices ) )
147+ geom_subset .GetIndicesAttr ().Set (face_indices )
148148 geom_subset .GetElementTypeAttr ().Set (UsdGeom .Tokens .face )
149149 geom_subset .GetFamilyNameAttr ().Set (UsdShade .Tokens .materialBind )
150150
You can’t perform that action at this time.
0 commit comments