[Bf-extensions-cvs] [940bd284] master: 3D Viewport Pie Menus: Fix crash with the Editor Switch Menu

lijenstina noreply at git.blender.org
Sat Jun 10 00:26:17 CEST 2017


Commit: 940bd28434a27f00eaeac9ab9503cbf804e1087f
Author: lijenstina
Date:   Sat Jun 10 00:25:27 2017 +0200
Branches: master
https://developer.blender.org/rBA940bd28434a27f00eaeac9ab9503cbf804e1087f

3D Viewport Pie Menus: Fix crash with the Editor Switch Menu

Bumped version to 1.1.4
Fix the crash in pie_editor_switch_menu linking non existent
classes - probably missed in some previous commits
Minor cleanup of the long lines
Update wiki links

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

M	space_view3d_pie_menus/__init__.py
M	space_view3d_pie_menus/pie_editor_switch_menu.py

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

diff --git a/space_view3d_pie_menus/__init__.py b/space_view3d_pie_menus/__init__.py
index 101d7426..5a08426f 100644
--- a/space_view3d_pie_menus/__init__.py
+++ b/space_view3d_pie_menus/__init__.py
@@ -21,14 +21,13 @@
 bl_info = {
     "name": "3D Viewport Pie Menus",
     "author": "meta-androcto, pitiwazou, chromoly, italic",
-    "version": (1, 1, 3),
+    "version": (1, 1, 4),
     "blender": (2, 7, 7),
     "description": "Individual Pie Menu Activation List",
     "location": "Addons Preferences",
     "warning": "",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
+    "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/"
     "Scripts/3D_interaction/viewport_pies",
-    "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
     "category": "Pie Menu"
     }
 
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()



More information about the Bf-extensions-cvs mailing list