[Bf-extensions-cvs] [6471c7af] master: Fix T98289: Asset Browser and Geometry Nodes in Pie menu

Cesar noreply at git.blender.org
Wed Nov 9 21:29:49 CET 2022


Commit: 6471c7afb8d7cc1725bae79a23fdd1e08fa8f68c
Author: Cesar
Date:   Wed Nov 9 17:26:13 2022 -0300
Branches: master
https://developer.blender.org/rBA6471c7afb8d7cc1725bae79a23fdd1e08fa8f68c

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

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

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 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.



More information about the Bf-extensions-cvs mailing list