diff options
author | Cesar <kc98> | 2022-11-09 23:26:13 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-11-09 23:28:28 +0300 |
commit | 6471c7afb8d7cc1725bae79a23fdd1e08fa8f68c (patch) | |
tree | 20f1b384051f4d837b2a3c02d12225dc80b671e4 | |
parent | 72906735548a38402445576bc9d884b63d3639cf (diff) |
Fix T98289: Asset Browser and Geometry Nodes in Pie menu
Added the Asset Browser, Spreadsheet and Geometry Node editors in their respective categories for pie menu add-on.
Differential Revision: https://developer.blender.org/D16323
-rw-r--r-- | space_view3d_pie_menus/__init__.py | 4 | ||||
-rw-r--r-- | space_view3d_pie_menus/pie_editor_switch_menu.py | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/space_view3d_pie_menus/__init__.py b/space_view3d_pie_menus/__init__.py index 34b47cac..a1f761b5 100644 --- a/space_view3d_pie_menus/__init__.py +++ b/space_view3d_pie_menus/__init__.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later -# Contributed to by meta-androcto, pitiwazou, chromoly, italic +# Contributed to by meta-androcto, pitiwazou, chromoly, italic, kc98 import bpy from bpy.props import ( @@ -16,7 +16,7 @@ from bpy.types import ( bl_info = { "name": "3D Viewport Pie Menus", "author": "meta-androcto", - "version": (1, 2, 9), + "version": (1, 3, 0), "blender": (2, 80, 0), "description": "Pie Menu Activation", "location": "Addons Preferences", diff --git a/space_view3d_pie_menus/pie_editor_switch_menu.py b/space_view3d_pie_menus/pie_editor_switch_menu.py index 5af85a7b..d5c06659 100644 --- a/space_view3d_pie_menus/pie_editor_switch_menu.py +++ b/space_view3d_pie_menus/pie_editor_switch_menu.py @@ -4,7 +4,7 @@ bl_info = { "name": "Hotkey: 'Ctrl Alt S' ", "description": "Switch Editor Type Menu", "author": "saidenka, meta-androcto", - "version": (0, 1, 0), + "version": (0, 1, 1), "blender": (2, 80, 0), "location": "All Editors", "warning": "", @@ -70,6 +70,8 @@ class PIE_MT_AreaTypePieOther(Menu): self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Text Editor", icon="TEXT").types = "TEXT_EDITOR" self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Python Console", icon="CONSOLE").types = "CONSOLE" self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Info", icon="INFO").types = "INFO" + self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Spreadsheet", icon="SPREADSHEET").types = "SPREADSHEET" + self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Asset Browser", icon="ASSET_MANAGER").types = "ASSETS" # Sub Menu Node editors. @@ -84,6 +86,8 @@ class PIE_MT_AreaTypePieNode(Menu): icon="NODE_COMPOSITING").types = "CompositorNodeTree" self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Texture", icon="NODE_TEXTURE").types = "TextureNodeTree" + self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Geometry", + icon="NODETREE").types = "GeometryNodeTree" # Sub Menu animation Editors. |