mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-25 16:05:20 +00:00
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:

committed by
Germano Cavalcante

parent
7290673554
commit
6471c7afb8
@ -1,6 +1,6 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# 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
|
import bpy
|
||||||
from bpy.props import (
|
from bpy.props import (
|
||||||
@ -16,7 +16,7 @@ from bpy.types import (
|
|||||||
bl_info = {
|
bl_info = {
|
||||||
"name": "3D Viewport Pie Menus",
|
"name": "3D Viewport Pie Menus",
|
||||||
"author": "meta-androcto",
|
"author": "meta-androcto",
|
||||||
"version": (1, 2, 9),
|
"version": (1, 3, 0),
|
||||||
"blender": (2, 80, 0),
|
"blender": (2, 80, 0),
|
||||||
"description": "Pie Menu Activation",
|
"description": "Pie Menu Activation",
|
||||||
"location": "Addons Preferences",
|
"location": "Addons Preferences",
|
||||||
|
@ -4,7 +4,7 @@ bl_info = {
|
|||||||
"name": "Hotkey: 'Ctrl Alt S' ",
|
"name": "Hotkey: 'Ctrl Alt S' ",
|
||||||
"description": "Switch Editor Type Menu",
|
"description": "Switch Editor Type Menu",
|
||||||
"author": "saidenka, meta-androcto",
|
"author": "saidenka, meta-androcto",
|
||||||
"version": (0, 1, 0),
|
"version": (0, 1, 1),
|
||||||
"blender": (2, 80, 0),
|
"blender": (2, 80, 0),
|
||||||
"location": "All Editors",
|
"location": "All Editors",
|
||||||
"warning": "",
|
"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="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="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="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.
|
# Sub Menu Node editors.
|
||||||
@ -84,6 +86,8 @@ class PIE_MT_AreaTypePieNode(Menu):
|
|||||||
icon="NODE_COMPOSITING").types = "CompositorNodeTree"
|
icon="NODE_COMPOSITING").types = "CompositorNodeTree"
|
||||||
self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Texture",
|
self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Texture",
|
||||||
icon="NODE_TEXTURE").types = "TextureNodeTree"
|
icon="NODE_TEXTURE").types = "TextureNodeTree"
|
||||||
|
self.layout.operator(PIE_OT_SetAreaType.bl_idname, text="Geometry",
|
||||||
|
icon="NODETREE").types = "GeometryNodeTree"
|
||||||
|
|
||||||
|
|
||||||
# Sub Menu animation Editors.
|
# Sub Menu animation Editors.
|
||||||
|
Reference in New Issue
Block a user