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:
authorCampbell Barton <ideasman42@gmail.com>2015-05-10 08:23:41 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-10 08:23:41 +0300
commit45d9df853ea8e01b4cfb04922c19a44545b0bd44 (patch)
treee65d94251c7dd24c0bcfa91bca9215ca5bc83a1d /release
parentd6b57436efad545347b4403610dd3af642d4378d (diff)
UI: consistent naming for operator props
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_freestyle.py9
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py12
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py6
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py12
4 files changed, 20 insertions, 19 deletions
diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py
index 8f8d8470fec..995136b0d97 100644
--- a/release/scripts/startup/bl_ui/properties_freestyle.py
+++ b/release/scripts/startup/bl_ui/properties_freestyle.py
@@ -690,10 +690,11 @@ class RENDERLAYER_PT_freestyle_linestyle(RenderLayerFreestyleEditorButtonsPanel,
row.prop(linestyle, "texture_spacing", text="Spacing Along Stroke")
row = layout.row()
- op = row.operator("wm.properties_context_change",
- text="Go to Linestyle Textures Properties",
- icon='TEXTURE')
- op.context = 'TEXTURE'
+ props = row.operator(
+ "wm.properties_context_change",
+ text="Go to Linestyle Textures Properties",
+ icon='TEXTURE')
+ props.context = 'TEXTURE'
elif linestyle.panel == 'MISC':
pass
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 0d512b263ac..06611db3213 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -230,12 +230,12 @@ class SEQUENCER_MT_select(Menu):
layout.operator("sequencer.select_active_side", text="Strips to the Left").side = 'LEFT'
layout.operator("sequencer.select_active_side", text="Strips to the Right").side = 'RIGHT'
- op = layout.operator("sequencer.select", text="All strips to the Left")
- op.left_right = 'LEFT'
- op.linked_time = True
- op = layout.operator("sequencer.select", text="All strips to the Right")
- op.left_right = 'RIGHT'
- op.linked_time = True
+ props = layout.operator("sequencer.select", text="All strips to the Left")
+ props.left_right = 'LEFT'
+ props.linked_time = True
+ props = layout.operator("sequencer.select", text="All strips to the Right")
+ props.left_right = 'RIGHT'
+ props.linked_time = True
layout.separator()
layout.operator("sequencer.select_handles", text="Surrounding Handles").side = 'BOTH'
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 02acb8291db..a4de4f858e7 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1666,9 +1666,9 @@ class VIEW3D_MT_paint_weight(Menu):
layout.operator("object.vertex_group_quantize", text="Quantize")
layout.operator("object.vertex_group_levels", text="Levels")
layout.operator("object.vertex_group_blend", text="Blend")
- prop = layout.operator("object.data_transfer", text="Transfer Weights")
- prop.use_reverse_transfer = True
- prop.data_type = 'VGROUP_WEIGHTS'
+ props = layout.operator("object.data_transfer", text="Transfer Weights")
+ props.use_reverse_transfer = True
+ props.data_type = 'VGROUP_WEIGHTS'
layout.operator("object.vertex_group_limit_total", text="Limit Total")
layout.operator("object.vertex_group_fix", text="Fix Deforms")
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 5fa3a559ab9..1f7d5178665 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -407,9 +407,9 @@ class VIEW3D_PT_tools_shading(View3DPanel, Panel):
row.operator("mesh.mark_sharp", text="Sharp")
col.label(text="Vertices:")
row = col.row(align=True)
- op = row.operator("mesh.mark_sharp", text="Smooth")
- op.use_verts = True
- op.clear = True
+ props = row.operator("mesh.mark_sharp", text="Smooth")
+ props.use_verts = True
+ props.clear = True
row.operator("mesh.mark_sharp", text="Sharp").use_verts = True
col = layout.column(align=True)
@@ -1607,9 +1607,9 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel, Panel):
col = layout.column()
col.operator("paint.weight_gradient")
- prop = col.operator("object.data_transfer", text="Transfer Weights")
- prop.use_reverse_transfer = True
- prop.data_type = 'VGROUP_WEIGHTS'
+ props = col.operator("object.data_transfer", text="Transfer Weights")
+ props.use_reverse_transfer = True
+ props.data_type = 'VGROUP_WEIGHTS'
class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel):