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

This commit is contained in:
Yevgeny Makarov 2020-07-16 18:06:51 +10:00 • committed by Jeroen Bakker
parent de3e797d47
commit bf92d262a3

View file

@ -1078,7 +1078,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()