Skip to content

Commit

Permalink
[Bugfix] Copy mesh before scaling if it was passed in as a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Nov 27, 2024
1 parent 2d684e2 commit a018b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoveit2/moveit2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ def add_collision_mesh(
if not (scale[0] == scale[1] == scale[2] == 1.0):
# If the mesh was passed in as a parameter, make a copy of it to
# avoid transforming the original.
if filepath is not None:
if filepath is None:
mesh = mesh.copy()
# Transform the mesh
transform = np.eye(4)
Expand Down

0 comments on commit a018b4c

Please sign in to comment.