[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56619] trunk/blender/release/scripts: use standard name for operator properties - 'props'.
Campbell Barton
ideasman42 at gmail.com
Thu May 9 15:05:36 CEST 2013
Revision: 56619
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56619
Author: campbellbarton
Date: 2013-05-09 13:05:36 +0000 (Thu, 09 May 2013)
Log Message:
-----------
use standard name for operator properties - 'props'.
Modified Paths:
--------------
trunk/blender/release/scripts/modules/nodeitems_utils.py
trunk/blender/release/scripts/startup/bl_ui/space_node.py
trunk/blender/release/scripts/startup/bl_ui/space_view3d.py
Modified: trunk/blender/release/scripts/modules/nodeitems_utils.py
===================================================================
--- trunk/blender/release/scripts/modules/nodeitems_utils.py 2013-05-09 12:46:35 UTC (rev 56618)
+++ trunk/blender/release/scripts/modules/nodeitems_utils.py 2013-05-09 13:05:36 UTC (rev 56619)
@@ -66,12 +66,12 @@
col = layout.column()
default_context = bpy.app.translations.contexts.default
for item in self.category.items(context):
- op = col.operator("node.add_node", text=item.label, text_ctxt=default_context)
- op.type = item.nodetype
- op.use_transform = True
+ props = col.operator("node.add_node", text=item.label, text_ctxt=default_context)
+ props.type = item.nodetype
+ props.use_transform = True
for setting in item.settings.items():
- ops = op.settings.add()
+ ops = props.settings.add()
ops.name = setting[0]
ops.value = setting[1]
Modified: trunk/blender/release/scripts/startup/bl_ui/space_node.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_node.py 2013-05-09 12:46:35 UTC (rev 56618)
+++ trunk/blender/release/scripts/startup/bl_ui/space_node.py 2013-05-09 13:05:36 UTC (rev 56619)
@@ -116,8 +116,8 @@
layout = self.layout
layout.operator_context = 'INVOKE_DEFAULT'
- op = layout.operator("node.add_search", text="Search ...")
- op.use_transform = True
+ props = layout.operator("node.add_search", text="Search ...")
+ props.use_transform = True
# actual node submenus are added by draw functions from node categories
Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d.py 2013-05-09 12:46:35 UTC (rev 56618)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d.py 2013-05-09 13:05:36 UTC (rev 56619)
@@ -1363,34 +1363,34 @@
def draw(self, context):
layout = self.layout
- op = layout.operator("paint.hide_show", text="Show All")
- op.action = 'SHOW'
- op.area = 'ALL'
+ props = layout.operator("paint.hide_show", text="Show All")
+ props.action = 'SHOW'
+ props.area = 'ALL'
- op = layout.operator("paint.hide_show", text="Hide Bounding Box")
- op.action = 'HIDE'
- op.area = 'INSIDE'
+ props = layout.operator("paint.hide_show", text="Hide Bounding Box")
+ props.action = 'HIDE'
+ props.area = 'INSIDE'
- op = layout.operator("paint.hide_show", text="Show Bounding Box")
- op.action = 'SHOW'
- op.area = 'INSIDE'
+ props = layout.operator("paint.hide_show", text="Show Bounding Box")
+ props.action = 'SHOW'
+ props.area = 'INSIDE'
- op = layout.operator("paint.hide_show", text="Hide Masked")
- op.area = 'MASKED'
- op.action = 'HIDE'
+ props = layout.operator("paint.hide_show", text="Hide Masked")
+ props.area = 'MASKED'
+ props.action = 'HIDE'
layout.separator()
- op = layout.operator("paint.mask_flood_fill", text="Invert Mask")
- op.mode = 'INVERT'
+ props = layout.operator("paint.mask_flood_fill", text="Invert Mask")
+ props.mode = 'INVERT'
- op = layout.operator("paint.mask_flood_fill", text="Fill Mask")
- op.mode = 'VALUE'
- op.value = 1
+ props = layout.operator("paint.mask_flood_fill", text="Fill Mask")
+ props.mode = 'VALUE'
+ props.value = 1
- op = layout.operator("paint.mask_flood_fill", text="Clear Mask")
- op.mode = 'VALUE'
- op.value = 0
+ props = layout.operator("paint.mask_flood_fill", text="Clear Mask")
+ props.mode = 'VALUE'
+ props.value = 0
# ********** Particle menu **********
More information about the Bf-blender-cvs
mailing list