UI: Center ID Blocks in Image Editor

See T55635
This commit is contained in:
William Reynish 2018-06-28 00:33:10 +02:00 committed by Pablo Vazquez
parent 9f4b7bed29
commit ed8fca8782
1 changed files with 7 additions and 4 deletions

View File

@ -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')