diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-25 16:15:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-25 16:15:22 +0400 |
commit | 62187c386ee22dc9c3bfa6fd60795ed510b4e529 (patch) | |
tree | aa156b02e695f9c9c745de592c122687f32cfe96 /release/scripts | |
parent | 7eaef1068dbec8dda48aadbed8c0e86e1245ad63 (diff) |
mask UI for space image
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 855e738f776..05c2600407e 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -349,6 +349,7 @@ class IMAGE_HT_header(Header): ima = sima.image iuser = sima.image_user toolsettings = context.tool_settings + mode = sima.mode show_render = sima.show_render # show_paint = sima.show_paint @@ -402,13 +403,16 @@ class IMAGE_HT_header(Header): mesh = context.edit_object.data layout.prop_search(mesh.uv_textures, "active", mesh, "uv_textures", text="") + layout.prop(sima, "mode", text="") + + if mode == 'MASK': + row = layout.row() + row.template_ID(sima, "mask", new="mask.new") + if ima: # layers layout.template_image_layers(ima, iuser) - # painting - layout.prop(sima, "mode", text="") - # draw options row = layout.row(align=True) row.prop(sima, "draw_channels", text="", expand=True) @@ -419,7 +423,7 @@ class IMAGE_HT_header(Header): if ima.type == 'COMPOSITE' and ima.source in {'MOVIE', 'SEQUENCE'}: row.operator("image.play_composite", icon='PLAY') - if show_uvedit or sima.mode == 'PAINT': + if show_uvedit or mode == 'PAINT': layout.prop(sima, "use_realtime_update", text="", icon_only=True, icon='LOCKED') |