[Bf-blender-cvs] [4a9d903e2bf] master: Fix View3D "Mirror" menu, both "Global" and "Local" items are GLOBAL

Yevgeny Makarov noreply at git.blender.org
Thu Jul 16 10:09:04 CEST 2020


Commit: 4a9d903e2bfd4f6b3f64b482344bc853a6d93236
Author: Yevgeny Makarov
Date:   Thu Jul 16 18:06:51 2020 +1000
Branches: master
https://developer.blender.org/rB4a9d903e2bfd4f6b3f64b482344bc853a6d93236

Fix View3D "Mirror" menu, both "Global" and "Local" items are GLOBAL

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index e4d0423cd76..e51e3544abf 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1086,7 +1086,7 @@ class VIEW3D_MT_mirror(Menu):
             for axis_index, axis_name in enumerate("XYZ"):
                 props = layout.operator("transform.mirror", text=f"{axis_name!s} {space_name!s}")
                 props.constraint_axis[axis_index] = True
-                props.orient_type = 'GLOBAL'
+                props.orient_type = space_id
 
             if space_id == 'GLOBAL':
                 layout.separator()



More information about the Bf-blender-cvs mailing list