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
This commit is contained in:
Cesar
2022-11-09 17:26:13 -03:00
committed by Germano Cavalcante
parent 7290673554
commit 6471c7afb8
2 changed files with 7 additions and 3 deletions

View File

@ -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",

View File

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