[Bf-blender-cvs] [ed8fca8782f] blender2.8: UI: Center ID Blocks in Image Editor

William Reynish noreply at git.blender.org
Thu Jun 28 00:49:29 CEST 2018


Commit: ed8fca8782fac6775f981b2cc740274178fac75d
Author: William Reynish
Date:   Thu Jun 28 00:33:10 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBed8fca8782fac6775f981b2cc740274178fac75d

UI: Center ID Blocks in Image Editor

See T55635

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

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 1acc8cf601d..5c1886e5be9 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -480,6 +480,10 @@ class IMAGE_HT_header(Header):
 
         layout.prop(sima, "mode", text="")
 
+        MASK_MT_editor_menus.draw_collapsible(context, layout)
+
+        layout.separator_spacer()
+
         layout.template_ID(sima, "image", new="image.new", open="image.open")
         if not show_render:
             layout.prop(sima, "use_image_pin", text="")
@@ -488,6 +492,8 @@ class IMAGE_HT_header(Header):
             row = layout.row()
             row.template_ID(sima, "mask", new="mask.new")
 
+        layout.separator_spacer()
+
         # uv editing
         if show_uvedit:
             uvedit = sima.uv_editor
@@ -500,10 +506,7 @@ class IMAGE_HT_header(Header):
                 layout.prop(toolsettings, "uv_select_mode", text="", expand=True)
                 layout.prop(uvedit, "sticky_select_mode", icon_only=True)
 
-        MASK_MT_editor_menus.draw_collapsible(context, layout)
-
-        layout.separator_spacer()
-
+        
         if show_uvedit or show_maskedit or mode == 'PAINT':
             layout.prop(sima, "use_realtime_update", icon_only=True, icon='LOCKED')



More information about the Bf-blender-cvs mailing list