[Bf-blender-cvs] [c8f95c78295] blender-v2.79a-release: Fix T53419: Masking "Add" menu is not present in Image editor, but shortcut is

Sebastian Koenig noreply at git.blender.org
Mon Jan 8 15:16:00 CET 2018


Commit: c8f95c7829518e28653ad041cdd8a6ade335db2f
Author: Sebastian Koenig
Date:   Thu Dec 7 14:44:10 2017 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rBc8f95c7829518e28653ad041cdd8a6ade335db2f

Fix T53419: Masking "Add" menu is not present in Image editor, but shortcut is

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

M	release/scripts/startup/bl_ui/space_image.py

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

diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index f070161f3da..0334008d9ea 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -552,6 +552,7 @@ from bl_ui.properties_mask_common import (
         MASK_PT_point,
         MASK_PT_display,
         MASK_PT_tools,
+        MASK_PT_add,
         )
 
 
@@ -580,6 +581,20 @@ class IMAGE_PT_active_mask_point(MASK_PT_point, Panel):
     bl_region_type = 'UI'
 
 
+class IMAGE_PT_tools_mask(MASK_PT_tools, Panel):
+    bl_space_type = 'IMAGE_EDITOR'
+    bl_region_type = 'TOOLS'
+    bl_category = 'Mask'
+
+class IMAGE_PT_tools_mask_add(MASK_PT_add, Panel):
+    bl_space_type = 'IMAGE_EDITOR'
+    bl_region_type = 'TOOLS'
+    bl_category = 'Mask'
+
+
+# --- end mask ---
+
+
 class IMAGE_PT_image_properties(Panel):
     bl_space_type = 'IMAGE_EDITOR'
     bl_region_type = 'UI'
@@ -1158,12 +1173,6 @@ class IMAGE_UV_sculpt(Panel, ImagePaintPanel):
         col.prop(uvsculpt, "show_brush")
 
 
-class IMAGE_PT_tools_mask(MASK_PT_tools, Panel):
-    bl_space_type = 'IMAGE_EDITOR'
-    bl_region_type = 'TOOLS'
-    bl_category = 'Mask'
-
-# --- end mask ---
 
 
 class IMAGE_PT_options_uvs(Panel, UVToolsPanel):
@@ -1348,6 +1357,7 @@ classes = (
     IMAGE_HT_header,
     MASK_MT_editor_menus,
     IMAGE_PT_mask,
+    IMAGE_PT_tools_mask_add,
     IMAGE_PT_mask_layers,
     IMAGE_PT_mask_display,
     IMAGE_PT_active_mask_spline,



More information about the Bf-blender-cvs mailing list