diff options
Diffstat (limited to 'space_view3d_pie_menus/pie_editor_switch_menu.py')
-rw-r--r-- | space_view3d_pie_menus/pie_editor_switch_menu.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/space_view3d_pie_menus/pie_editor_switch_menu.py b/space_view3d_pie_menus/pie_editor_switch_menu.py index 710c8fe1..788b053d 100644 --- a/space_view3d_pie_menus/pie_editor_switch_menu.py +++ b/space_view3d_pie_menus/pie_editor_switch_menu.py @@ -56,7 +56,8 @@ class AreaTypePieOperator(Operator): bl_options = {'REGISTER', 'UNDO'} def execute(self, context): - bpy.ops.wm.call_menu_pie(name=AreaTypeEditor.bl_idname) + bpy.ops.wm.call_menu_pie(name=AreaPieEditor.bl_idname) + return {'FINISHED'} @@ -99,7 +100,8 @@ class AreaTypePieOther(Menu): self.layout.operator(SetAreaType.bl_idname, text="Python Console", icon="CONSOLE").type = "CONSOLE" # 8 - TOP # 7 - TOP - LEFT - self.layout.operator(SetAreaType.bl_idname, text="User Setting", icon="PREFERENCES").type = "USER_PREFERENCES" + self.layout.operator(SetAreaType.bl_idname, text="User Setting", + icon="PREFERENCES").type = "USER_PREFERENCES" # 9 - TOP - RIGHT self.layout.operator(SetAreaType.bl_idname, text="Info", icon="INFO").type = "INFO" # 1 - BOTTOM - LEFT @@ -134,13 +136,16 @@ class AreaTypePieAnim(Menu): # 8 - TOP self.layout.operator(SetAreaType.bl_idname, text="Timeline", icon="TIME").type = "TIMELINE" # 7 - TOP - LEFT - self.layout.operator(SetAreaType.bl_idname, text="Video Sequence Editor", icon="SEQUENCE").type = "SEQUENCE_EDITOR" + self.layout.operator(SetAreaType.bl_idname, + text="Video Sequence Editor", icon="SEQUENCE").type = "SEQUENCE_EDITOR" # 9 - TOP - RIGHT - self.layout.operator(SetAreaType.bl_idname, text="Video Clip Editor", icon="RENDER_ANIMATION").type = "CLIP_EDITOR" + self.layout.operator(SetAreaType.bl_idname, + text="Video Clip Editor", icon="RENDER_ANIMATION").type = "CLIP_EDITOR" # 1 - BOTTOM - LEFT - self.layout.operator("wm.call_menu_pie", text="Back", icon="BACK").name = PieEditor.bl_idname + self.layout.operator("wm.call_menu_pie", text="Back", icon="BACK").name = AreaPieEditor.bl_idname # 3 - BOTTOM - RIGHT + classes = ( AreaPieMenu, AreaTypePieOperator, @@ -180,5 +185,6 @@ def unregister(): if kmi.properties.name == "wm.area_type_pie_operator": km.keymap_items.remove(kmi) + if __name__ == "__main__": register() |