View 3D Pie Menus: Blender 2.8 fixes

This commit is contained in:
Jacques Lucke 2018-11-06 15:16:06 +01:00
parent 22fc4cc621
commit 30e26a0082
2 changed files with 2 additions and 8 deletions

View File

@ -44,13 +44,7 @@ class WManupulators(Operator):
bl_description = " Show/Hide Manipulator"
def execute(self, context):
if context.space_data.show_manipulator is True:
context.space_data.show_manipulator = False
elif context.space_data.show_manipulator is False:
context.space_data.show_manipulator = True
context.space_data.show_gizmo_tool = not context.space_data.show_gizmo_tool
return {'FINISHED'}

View File

@ -51,7 +51,7 @@ class OrientPoll(Operator):
return context.space_data.type == "VIEW_3D"
def execute(self, context):
context.space_data.transform_orientation = self.space
context.scene.transform_orientation = self.space
return {'FINISHED'}