Fix T83732: Use correct UI type for pie menu entry

This patch fixes the UI type used for the image editor entry
in the "3D Viewport Pie Menus" add-on. Previously the add-on
set the UI type to "VIEW", which doesn't exist. This commit
use corrects the value to "IMAGE_EDITOR".

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D9894
This commit is contained in:
Robert Guetzkow 2020-12-19 09:59:00 +01:00 committed by Robert Guetzkow
parent a3fa40ec0b
commit 2719e7b337
Notes: blender-bot 2023-02-14 18:46:45 +01:00
Referenced by issue #83732, Viewport pie menu: Can't select image editor
Referenced by issue #82128, Typo in pie menus add-on
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class PIE_MT_AreaPieEditor(Menu):
# 8 - TOP
pie.operator(PIE_OT_SetAreaType.bl_idname, text="3D View", icon="VIEW3D").types = "VIEW_3D"
# 7 - TOP - LEFT
pie.operator(PIE_OT_SetAreaType.bl_idname, text="Image Editor", icon="IMAGE").types = "VIEW"
pie.operator(PIE_OT_SetAreaType.bl_idname, text="Image Editor", icon="IMAGE").types = "IMAGE_EDITOR"
# 9 - TOP - RIGHT
pie.operator(PIE_OT_SetAreaType.bl_idname, text="UV Editor", icon="UV").types = "UV"
# 1 - BOTTOM - LEFT