Skip to content

Commit

Permalink
--properly set matching orientation
Browse files Browse the repository at this point in the history
Need to go through the _move_one_object function to appropriately handle undo
  • Loading branch information
jturner65 committed Aug 20, 2024
1 parent 5d74172 commit 3cd59ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src_python/habitat_sim/utils/classes/object_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,11 @@ def match_orientation(self, navmesh_dirty: bool) -> bool:
match_rotation = self.sel_objs[-1].rotation
local_navmesh_dirty = False
for obj in self.sel_objs:
obj_mod_rot = match_rotation * obj.rotation.inverted()
local_navmesh_dirty = self._move_one_object(
obj,
navmesh_dirty,
rotation=match_rotation,
rotation=obj_mod_rot,
removal=False,
)
navmesh_dirty = navmesh_dirty or local_navmesh_dirty
Expand Down

0 comments on commit 3cd59ef

Please sign in to comment.