From 6471c7afb8d7cc1725bae79a23fdd1e08fa8f68c Mon Sep 17 00:00:00 2001 From: Cesar Date: Wed, 9 Nov 2022 17:26:13 -0300 Subject: 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 --- space_view3d_pie_menus/__init__.py | 4 ++-- 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. -- cgit v1.2.3