use standard name for operator properties - 'props'.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 9 May 2013 13:05:36 +0000 (13:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 9 May 2013 13:05:36 +0000 (13:05 +0000)
release/scripts/modules/nodeitems_utils.py
release/scripts/startup/bl_ui/space_node.py
release/scripts/startup/bl_ui/space_view3d.py

index b58207d7c652ad147e832abdd82517a5c211bb29..e97e97684c3c0fb370f00a4e2b1d9f57f21f87fb 100644 (file)
@@ -66,12 +66,12 @@ def register_node_categories(identifier, cat_list):
         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]
 
index 86d53648cc1004d0d9569dcb04adf62d382c6242..aca449ee368ffa31fe5cfabebb2f862111fcb997 100644 (file)
@@ -116,8 +116,8 @@ class NODE_MT_add(bpy.types.Menu):
         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
 
index edc285916cda2c5f81d1dbe6a7492b3e1ae77160..b682700e75b2116dd49329a30a9c0d5c045ee4e0 100644 (file)
@@ -1363,34 +1363,34 @@ class VIEW3D_MT_hide_mask(Menu):
     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 **********