[Bf-extensions-cvs] [2719e7b3] master: Fix T83732: Use correct UI type for pie menu entry

Robert Guetzkow noreply at git.blender.org
Sat Dec 19 10:05:45 CET 2020


Commit: 2719e7b337fcd9464b98f3394f5ebe2b043f71ba
Author: Robert Guetzkow
Date:   Sat Dec 19 09:59:00 2020 +0100
Branches: master
https://developer.blender.org/rBA2719e7b337fcd9464b98f3394f5ebe2b043f71ba

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

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

M	space_view3d_pie_menus/pie_editor_switch_menu.py

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

diff --git a/space_view3d_pie_menus/pie_editor_switch_menu.py b/space_view3d_pie_menus/pie_editor_switch_menu.py
index 5b6475d6..585a90f0 100644
--- a/space_view3d_pie_menus/pie_editor_switch_menu.py
+++ b/space_view3d_pie_menus/pie_editor_switch_menu.py
@@ -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



More information about the Bf-extensions-cvs mailing list