diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-08-24 00:41:21 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-08-24 00:41:21 +0400 |
commit | 5b83a89c8127d48221d769fbff18ef02baaa1f6b (patch) | |
tree | dcd776aaef0d10625e0e50a93c1c34c0fa9bf113 /release/scripts/startup/bl_ui/properties_mask_common.py | |
parent | 52eb61f84b564308762fdaafbd05b5193cf513c0 (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/properties_mask_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_mask_common.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/properties_mask_common.py b/release/scripts/startup/bl_ui/properties_mask_common.py index 4e45b20e76f..aa4d671e938 100644 --- a/release/scripts/startup/bl_ui/properties_mask_common.py +++ b/release/scripts/startup/bl_ui/properties_mask_common.py @@ -96,11 +96,8 @@ class MASK_PT_layers: if active_layer: sub.separator() - props = sub.operator("mask.layer_move", icon='TRIA_UP', text="") - props.direction = 'UP' - - props = sub.operator("mask.layer_move", icon='TRIA_DOWN', text="") - props.direction = 'DOWN' + sub.operator("mask.layer_move", icon='TRIA_UP', text="").direction = 'UP' + sub.operator("mask.layer_move", icon='TRIA_DOWN', text="").direction = 'DOWN' layout.prop(active_layer, "name") @@ -245,8 +242,7 @@ class MASK_PT_tools(): col.operator("transform.translate") col.operator("transform.rotate") col.operator("transform.resize", text="Scale") - props = col.operator("transform.transform", text="Scale Feather") - props.mode = 'MASK_SHRINKFATTEN' + col.operator("transform.transform", text="Scale Feather").mode = 'MASK_SHRINKFATTEN' col = layout.column(align=True) col.label(text="Spline:") @@ -300,9 +296,7 @@ class MASK_MT_visibility(Menu): layout.operator("mask.hide_view_clear", text="Show Hidden") layout.operator("mask.hide_view_set", text="Hide Selected") - - props = layout.operator("mask.hide_view_set", text="Hide Unselected") - props.unselected = True + layout.operator("mask.hide_view_set", text="Hide Unselected").unselected = True class MASK_MT_transform(Menu): @@ -314,8 +308,7 @@ class MASK_MT_transform(Menu): layout.operator("transform.translate") layout.operator("transform.rotate") layout.operator("transform.resize") - props = layout.operator("transform.transform", text="Scale Feather") - props.mode = 'MASK_SHRINKFATTEN' + layout.operator("transform.transform", text="Scale Feather").mode = 'MASK_SHRINKFATTEN' class MASK_MT_animation(Menu): |