Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-08-24 00:41:21 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-08-24 00:41:21 +0400
commit5b83a89c8127d48221d769fbff18ef02baaa1f6b (patch)
treedcd776aaef0d10625e0e50a93c1c34c0fa9bf113 /release/scripts/startup/bl_ui/space_image.py
parent52eb61f84b564308762fdaafbd05b5193cf513c0 (diff)
Followup to r59434 : py UI scripts edits.
Notes: * Made those edits by full checking of py files, so I should have spoted most needed edits, yet it remains quite probable I missed a few ones, we'll fix if/when someone notice it... * Also made some cleanup "on the road"!
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py25
1 files changed, 8 insertions, 17 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 22e2e6e08a2..398d1596216 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -183,17 +183,10 @@ class IMAGE_MT_image_invert(Menu):
layout.separator()
- props = layout.operator("image.invert", text="Invert Red Channel")
- props.invert_r = True
-
- props = layout.operator("image.invert", text="Invert Green Channel")
- props.invert_g = True
-
- props = layout.operator("image.invert", text="Invert Blue Channel")
- props.invert_b = True
-
- props = layout.operator("image.invert", text="Invert Alpha Channel")
- props.invert_a = True
+ layout.operator("image.invert", text="Invert Red Channel").invert_r = True
+ layout.operator("image.invert", text="Invert Green Channel").invert_g = True
+ layout.operator("image.invert", text="Invert Blue Channel").invert_b = True
+ layout.operator("image.invert", text="Invert Alpha Channel").invert_a = True
class IMAGE_MT_uvs_showhide(Menu):
@@ -714,8 +707,6 @@ class IMAGE_PT_paint(Panel, ImagePaintPanel):
self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
- row = col.row(align=True)
-
col.prop(brush, "blend", text="Blend")
if brush.image_tool == 'CLONE':
@@ -745,14 +736,14 @@ class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, Panel):
col.active = brush.brush_capabilities.has_overlay
col.label(text="Overlay:")
- row = col.row()
+ row = col.row(align=True)
if tex_slot.map_mode != 'STENCIL':
if brush.use_primary_overlay:
row.prop(brush, "use_primary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_OFF')
else:
row.prop(brush, "use_primary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_ON')
- sub = row.row()
+ sub = row.row(align=True)
sub.prop(brush, "texture_overlay_alpha", text="Alpha")
sub.prop(brush, "use_primary_overlay_override", toggle=True, text="", icon='BRUSH_DATA')
@@ -777,14 +768,14 @@ class IMAGE_PT_tools_mask_texture(BrushButtonsPanel, Panel):
col.active = brush.brush_capabilities.has_overlay
col.label(text="Overlay:")
- row = col.row()
+ row = col.row(align=True)
if tex_slot_alpha.map_mode != 'STENCIL':
if brush.use_secondary_overlay:
row.prop(brush, "use_secondary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_OFF')
else:
row.prop(brush, "use_secondary_overlay", toggle=True, text="", icon='RESTRICT_VIEW_ON')
- sub = row.row()
+ sub = row.row(align=True)
sub.prop(brush, "mask_overlay_alpha", text="Alpha")
sub.prop(brush, "use_secondary_overlay_override", toggle=True, text="", icon='BRUSH_DATA')