diff --git a/habitat-lab/habitat/datasets/rearrange/samplers/receptacle.py b/habitat-lab/habitat/datasets/rearrange/samplers/receptacle.py index 91205b0a33..6bda9904b2 100644 --- a/habitat-lab/habitat/datasets/rearrange/samplers/receptacle.py +++ b/habitat-lab/habitat/datasets/rearrange/samplers/receptacle.py @@ -499,7 +499,6 @@ def filter_interleave_mesh(mesh: mn.trade.MeshData) -> mn.trade.MeshData: Filter all but position data and interleave a mesh to reduce overall memory footprint. Convert triangle like primitives into triangles and assert only triangles remain. - NOTE: Modifies the mesh data in-place :return: The modified mesh for easy of use. """ @@ -519,7 +518,9 @@ def filter_interleave_mesh(mesh: mn.trade.MeshData) -> mn.trade.MeshData: ) # reformat the mesh data after filtering - mesh = mn.meshtools.interleave(mesh, mn.meshtools.InterleaveFlags.NONE) + mesh = mn.meshtools.interleave( + mesh, flags=mn.meshtools.InterleaveFlags.NONE + ) return mesh