diff options
author | lijenstina <lijenstina@gmail.com> | 2017-07-02 13:37:39 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2017-07-02 13:37:39 +0300 |
commit | 2e7de78293291168d159c5922311b5faddc6f384 (patch) | |
tree | 85e18866a4487139f8334d5a35e475d3040379cd /pie_menus_official/pie_view_of.py | |
parent | 5f6db2960476d0f7e385e5603d27f3802cbc6249 (diff) |
UI Pie Menu Official: Cleanup, update to version 1.1.5
Bumped version to 1.1.5
Pep8 cleanup
Remove unused imports - Operator was copy pasted
Comment out the code for getting the submodule name
instead of commenting out the bl_info entries
Add an icon to the End of the Pie activation label
Fix several crashes in the Clip Editor Pies related
to calling them when the clip was missing
Fix crash with Pivot pie when there is no active object
Diffstat (limited to 'pie_menus_official/pie_view_of.py')
-rw-r--r-- | pie_menus_official/pie_view_of.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pie_menus_official/pie_view_of.py b/pie_menus_official/pie_view_of.py index f09376eb..65a2e262 100644 --- a/pie_menus_official/pie_view_of.py +++ b/pie_menus_official/pie_view_of.py @@ -1,8 +1,8 @@ bl_info = { "name": "View Menu: Key: 'Q key'", "description": "View Modes", -# "author": "Antony Riakiotakis, Sebastian Koenig", -# "version": (0, 1, 0), + "author": "Antony Riakiotakis, Sebastian Koenig", + "version": (0, 1, 1), "blender": (2, 77, 0), "location": "Q key", "warning": "", @@ -11,16 +11,13 @@ bl_info = { } import bpy -from bpy.types import ( - Menu, - Operator, - ) +from bpy.types import Menu + # Pie View Mode - Q class VIEW3D_PIE_view_more_of(Menu): bl_label = "More" - def draw(self, context): layout = self.layout @@ -44,6 +41,7 @@ class VIEW3D_PIE_view_of(Menu): pie.operator_enum("VIEW3D_OT_viewnumpad", "type") pie.operator("wm.call_menu_pie", text="More", icon='PLUS').name = "VIEW3D_PIE_view_more_of" + classes = [ VIEW3D_PIE_view_more_of, VIEW3D_PIE_view_of, @@ -51,6 +49,7 @@ classes = [ addon_keymaps = [] + def register(): addon_keymaps.clear() for cls in classes: @@ -64,16 +63,18 @@ def register(): kmi.properties.name = "pie.view_of" addon_keymaps.append((km, kmi)) + def unregister(): for cls in classes: bpy.utils.unregister_class(cls) - wm = bpy.context.window_manager + wm = bpy.context.window_manager kc = wm.keyconfigs.addon if kc: for km, kmi in addon_keymaps: km.keymap_items.remove(kmi) addon_keymaps.clear() + if __name__ == "__main__": register() |