[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31527] trunk/blender: rename UI function

Campbell Barton ideasman42 at gmail.com
Mon Aug 23 07:47:45 CEST 2010


Revision: 31527
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31527
Author:   campbellbarton
Date:     2010-08-23 07:47:45 +0200 (Mon, 23 Aug 2010)

Log Message:
-----------
rename UI function
  layout.prop_object() --> prop_search().

The internal name is uiItemPointerR, in python this can translate into into an Object, however this is misleading.
It can be confused with a blender Object and uiItemPointerR can also be used for strings.
  

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/properties_data_bone.py
    trunk/blender/release/scripts/ui/properties_data_lattice.py
    trunk/blender/release/scripts/ui/properties_data_mesh.py
    trunk/blender/release/scripts/ui/properties_data_modifier.py
    trunk/blender/release/scripts/ui/properties_material.py
    trunk/blender/release/scripts/ui/properties_object.py
    trunk/blender/release/scripts/ui/properties_object_constraint.py
    trunk/blender/release/scripts/ui/properties_particle.py
    trunk/blender/release/scripts/ui/properties_physics_cloth.py
    trunk/blender/release/scripts/ui/properties_physics_smoke.py
    trunk/blender/release/scripts/ui/properties_physics_softbody.py
    trunk/blender/release/scripts/ui/properties_texture.py
    trunk/blender/release/scripts/ui/space_image.py
    trunk/blender/release/scripts/ui/space_outliner.py
    trunk/blender/release/scripts/ui/space_time.py
    trunk/blender/release/scripts/ui/space_userpref_keymap.py
    trunk/blender/release/scripts/ui/space_view3d.py
    trunk/blender/source/blender/makesrna/intern/rna_ui_api.c

Modified: trunk/blender/release/scripts/ui/properties_data_bone.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_bone.py	2010-08-23 05:36:21 UTC (rev 31526)
+++ trunk/blender/release/scripts/ui/properties_data_bone.py	2010-08-23 05:47:45 UTC (rev 31527)
@@ -151,14 +151,14 @@
 
         if ob and pchan:
             col.label(text="Bone Group:")
-            col.prop_object(pchan, "bone_group", ob.pose, "bone_groups", text="")
+            col.prop_search(pchan, "bone_group", ob.pose, "bone_groups", text="")
 
         col = split.column()
         col.label(text="Parent:")
         if context.bone:
             col.prop(bone, "parent", text="")
         else:
-            col.prop_object(bone, "parent", arm, "edit_bones", text="")
+            col.prop_search(bone, "parent", arm, "edit_bones", text="")
 
         sub = col.column()
         sub.active = (bone.parent is not None)
@@ -202,7 +202,7 @@
             col.label(text="Custom Shape:")
             col.prop(pchan, "custom_shape", text="")
             if pchan.custom_shape:
-                col.prop_object(pchan, "custom_shape_transform", ob.pose, "bones", text="At")
+                col.prop_search(pchan, "custom_shape_transform", ob.pose, "bones", text="At")
 
 
 class BONE_PT_inverse_kinematics(BoneButtonsPanel, bpy.types.Panel):

Modified: trunk/blender/release/scripts/ui/properties_data_lattice.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_lattice.py	2010-08-23 05:36:21 UTC (rev 31526)
+++ trunk/blender/release/scripts/ui/properties_data_lattice.py	2010-08-23 05:47:45 UTC (rev 31527)
@@ -79,7 +79,7 @@
 
         row = layout.row()
         row.prop(lat, "use_outside")
-        row.prop_object(lat, "vertex_group", context.object, "vertex_groups", text="")
+        row.prop_search(lat, "vertex_group", context.object, "vertex_groups", text="")
  
 
 class DATA_PT_custom_props_lattice(DataButtonsPanel, PropertyPanel, bpy.types.Panel):

Modified: trunk/blender/release/scripts/ui/properties_data_mesh.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_mesh.py	2010-08-23 05:36:21 UTC (rev 31526)
+++ trunk/blender/release/scripts/ui/properties_data_mesh.py	2010-08-23 05:47:45 UTC (rev 31527)
@@ -245,8 +245,8 @@
                     col = split.column(align=True)
                     col.active = enable_edit_value
                     col.label(text="Blend:")
-                    col.prop_object(kb, "vertex_group", ob, "vertex_groups", text="")
-                    col.prop_object(kb, "relative_key", key, "keys", text="")
+                    col.prop_search(kb, "vertex_group", ob, "vertex_groups", text="")
+                    col.prop_search(kb, "relative_key", key, "keys", text="")
 
             else:
                 row = layout.row()

Modified: trunk/blender/release/scripts/ui/properties_data_modifier.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_modifier.py	2010-08-23 05:36:21 UTC (rev 31526)
+++ trunk/blender/release/scripts/ui/properties_data_modifier.py	2010-08-23 05:47:45 UTC (rev 31527)
@@ -55,7 +55,7 @@
 
         col = split.column()
         col.label(text="Vertex Group::")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         sub = col.column()
         sub.active = bool(md.vertex_group)
         sub.prop(md, "invert_vertex_group")
@@ -182,7 +182,7 @@
 
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         col = split.column()
         col.label(text="Control Object:")
         col.prop(md, "object", text="")
@@ -203,7 +203,7 @@
         col.prop(md, "object", text="")
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         layout.label(text="Deformation Axis:")
         layout.row().prop(md, "deform_axis", expand=True)
 
@@ -218,7 +218,7 @@
         col.label(text="Texture:")
         col.prop(md, "texture", text="")
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         col = split.column()
         col.label(text="Direction:")
@@ -228,7 +228,7 @@
         if md.texture_coords == 'OBJECT':
             layout.prop(md, "texture_coordinate_object", text="Object")
         elif md.texture_coords == 'UV' and ob.type == 'MESH':
-            layout.prop_object(md, "uv_layer", ob.data, "uv_textures")
+            layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
 
         layout.separator()
 
@@ -257,7 +257,7 @@
 
         col = split.column()
         col.label(text="Vertex group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
         sub = col.column()
         sub.active = bool(md.vertex_group)
         sub.prop(md, "protect")
@@ -282,10 +282,10 @@
         col.prop(md, "object", text="")
         if md.object and md.object.type == 'ARMATURE':
             col.label(text="Bone:")
-            col.prop_object(md, "subtarget", md.object.data, "bones", text="")
+            col.prop_search(md, "subtarget", md.object.data, "bones", text="")
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         layout.separator()
 
@@ -314,7 +314,7 @@
 
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
     def MASK(self, layout, ob, md):
         split = layout.split()
@@ -328,7 +328,7 @@
             col.prop(md, "armature", text="")
         elif md.mode == 'VERTEX_GROUP':
             col.label(text="Vertex Group:")
-            col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+            col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         sub = col.column()
         sub.active = bool(md.vertex_group)
@@ -343,7 +343,7 @@
         sub.active = not md.is_bound
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         sub = col.column()
         sub.active = bool(md.vertex_group)
@@ -480,7 +480,7 @@
         col.prop(md, "target", text="")
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         split = layout.split()
 
@@ -528,7 +528,7 @@
 
         col = split.column()
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         split = layout.split()
 
@@ -563,7 +563,7 @@
         col.prop(md, "factor")
         col.prop(md, "iterations")
         col.label(text="Vertex Group:")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
     def SOFT_BODY(self, layout, ob, md):
         layout.label(text="See Soft Body panel.")
@@ -574,7 +574,7 @@
 
         col = split.column()
         col.prop(md, "thickness")
-        col.prop_object(md, "vertex_group", ob, "vertex_groups", text="")
+        col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
 
         col.label(text="Crease:")
         col.prop(md, "edge_crease_inner", text="Inner")
@@ -623,7 +623,7 @@
 
             col = split.column()
             col.label(text="UV Layer:")
-            col.prop_object(md, "uv_layer", ob.data, "uv_textures", text="")
+            col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
 
             split = layout.split()
             col = split.column()
@@ -677,11 +677,11 @@
         layout.separator()
 
         layout.prop(md, "start_position_object")
-        layout.prop_object(md, "vertex_group", ob, "vertex_groups")
+        layout.prop_search(md, "vertex_group", ob, "vertex_groups")
         layout.prop(md, "texture")
         layout.prop(md, "texture_coords")
         if md.texture_coords == 'MAP_UV' and ob.type == 'MESH':
-            layout.prop_object(md, "uv_layer", ob.data, "uv_textures")
+            layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
         elif md.texture_coords == 'OBJECT':
             layout.prop(md, "texture_coords_object")
 

Modified: trunk/blender/release/scripts/ui/properties_material.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_material.py	2010-08-23 05:36:21 UTC (rev 31526)
+++ trunk/blender/release/scripts/ui/properties_material.py	2010-08-23 05:47:45 UTC (rev 31527)
@@ -615,7 +615,7 @@
         col.prop(tan, "width_fade")
         ob = context.object
         if ob and ob.type == 'MESH':
-            col.prop_object(tan, "uv_layer", ob.data, "uv_textures", text="")
+            col.prop_search(tan, "uv_layer", ob.data, "uv_textures", text="")
         else:
             col.prop(tan, "uv_layer", text="")
         col.separator()

Modified: trunk/blender/release/scripts/ui/properties_object.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_object.py	2010-08-23 05:36:21 UTC (rev 31526)
+++ trunk/blender/release/scripts/ui/properties_object.py	2010-08-23 05:47:45 UTC (rev 31527)
@@ -119,7 +119,7 @@
         sub.prop(ob, "parent_type", text="")

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list