diff --git a/src_python/habitat_sim/utils/classes/object_editor.py b/src_python/habitat_sim/utils/classes/object_editor.py index eaeb3d413e..a910475c35 100644 --- a/src_python/habitat_sim/utils/classes/object_editor.py +++ b/src_python/habitat_sim/utils/classes/object_editor.py @@ -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