Revision: 24927
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24927
Author:   campbellbarton
Date:     2009-11-26 18:54:16 +0100 (Thu, 26 Nov 2009)

Log Message:
-----------
rename rotate_like_x --> use_x, for copy loc/size/rot constraints.
including rotate in the property name isnt needed since its a copy rotation 
constraint.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/properties_object_constraint.py
    trunk/blender/source/blender/makesrna/intern/rna_constraint.c

Modified: trunk/blender/release/scripts/ui/properties_object_constraint.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_object_constraint.py    
2009-11-26 17:20:02 UTC (rev 24926)
+++ trunk/blender/release/scripts/ui/properties_object_constraint.py    
2009-11-26 17:54:16 UTC (rev 24927)
@@ -402,21 +402,21 @@
         split = layout.split()
 
         col = split.column()
-        col.prop(con, "rotate_like_x", text="X")
+        col.prop(con, "use_x", text="X")
         sub = col.column()
-        sub.active = con.rotate_like_x
+        sub.active = con.use_x
         sub.prop(con, "invert_x", text="Invert")
 
         col = split.column()
-        col.prop(con, "rotate_like_y", text="Y")
+        col.prop(con, "use_y", text="Y")
         sub = col.column()
-        sub.active = con.rotate_like_y
+        sub.active = con.use_y
         sub.prop(con, "invert_y", text="Invert")
 
         col = split.column()
-        col.prop(con, "rotate_like_z", text="Z")
+        col.prop(con, "use_z", text="Z")
         sub = col.column()
-        sub.active = con.rotate_like_z
+        sub.active = con.use_z
         sub.prop(con, "invert_z", text="Invert")
 
         layout.prop(con, "use_offset")
@@ -429,21 +429,21 @@
         split = layout.split()
 
         col = split.column()
-        col.prop(con, "locate_like_x", text="X")
+        col.prop(con, "use_x", text="X")
         sub = col.column()
-        sub.active = con.locate_like_x
+        sub.active = con.use_x
         sub.prop(con, "invert_x", text="Invert")
 
         col = split.column()
-        col.prop(con, "locate_like_y", text="Y")
+        col.prop(con, "use_y", text="Y")
         sub = col.column()
-        sub.active = con.locate_like_y
+        sub.active = con.use_y
         sub.prop(con, "invert_y", text="Invert")
 
         col = split.column()
-        col.prop(con, "locate_like_z", text="Z")
+        col.prop(con, "use_z", text="Z")
         sub = col.column()
-        sub.active = con.locate_like_z
+        sub.active = con.use_z
         sub.prop(con, "invert_z", text="Invert")
 
         layout.prop(con, "use_offset")
@@ -454,9 +454,9 @@
         self.target_template(layout, con, wide_ui)
 
         row = layout.row(align=True)
-        row.prop(con, "size_like_x", text="X")
-        row.prop(con, "size_like_y", text="Y")
-        row.prop(con, "size_like_z", text="Z")
+        row.prop(con, "use_x", text="X")
+        row.prop(con, "use_y", text="Y")
+        row.prop(con, "use_z", text="Z")
 
         layout.prop(con, "use_offset")
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_constraint.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_constraint.c       
2009-11-26 17:20:02 UTC (rev 24926)
+++ trunk/blender/source/blender/makesrna/intern/rna_constraint.c       
2009-11-26 17:54:16 UTC (rev 24927)
@@ -661,19 +661,19 @@
        RNA_def_property_ui_text(prop, "Sub-Target", "");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_dependency_update");
 
-       prop= RNA_def_property(srna, "rotate_like_x", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_x", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", ROTLIKE_X);
-       RNA_def_property_ui_text(prop, "Like X", "Copy the target's X 
rotation.");
+       RNA_def_property_ui_text(prop, "Copy X", "Copy the target's X 
rotation.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
-       prop= RNA_def_property(srna, "rotate_like_y", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_y", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", ROTLIKE_Y);
-       RNA_def_property_ui_text(prop, "Like Y", "Copy the target's Y 
rotation.");
+       RNA_def_property_ui_text(prop, "Copy Y", "Copy the target's Y 
rotation.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
-       prop= RNA_def_property(srna, "rotate_like_z", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_z", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", ROTLIKE_Z);
-       RNA_def_property_ui_text(prop, "Like Z", "Copy the target's Z 
rotation.");
+       RNA_def_property_ui_text(prop, "Copy Z", "Copy the target's Z 
rotation.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
        prop= RNA_def_property(srna, "invert_x", PROP_BOOLEAN, PROP_NONE);
@@ -724,19 +724,19 @@
        RNA_def_property_ui_text(prop, "Sub-Target", "");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_dependency_update");
 
-       prop= RNA_def_property(srna, "locate_like_x", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_x", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", LOCLIKE_X);
-       RNA_def_property_ui_text(prop, "Like X", "Copy the target's X 
location.");
+       RNA_def_property_ui_text(prop, "Copy X", "Copy the target's X 
location.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
-       prop= RNA_def_property(srna, "locate_like_y", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_y", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", LOCLIKE_Y);
-       RNA_def_property_ui_text(prop, "Like Y", "Copy the target's Y 
location.");
+       RNA_def_property_ui_text(prop, "Copy Y", "Copy the target's Y 
location.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
-       prop= RNA_def_property(srna, "locate_like_z", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_z", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", LOCLIKE_Z);
-       RNA_def_property_ui_text(prop, "Like Z", "Copy the target's Z 
location.");
+       RNA_def_property_ui_text(prop, "Copy Z", "Copy the target's Z 
location.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
        prop= RNA_def_property(srna, "invert_x", PROP_BOOLEAN, PROP_NONE);
@@ -832,19 +832,19 @@
        RNA_def_property_ui_text(prop, "Sub-Target", "");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_dependency_update");
 
-       prop= RNA_def_property(srna, "size_like_x", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_x", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", SIZELIKE_X);
-       RNA_def_property_ui_text(prop, "Like X", "Copy the target's X scale.");
+       RNA_def_property_ui_text(prop, "Copy X", "Copy the target's X scale.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
-       prop= RNA_def_property(srna, "size_like_y", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_y", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", SIZELIKE_Y);
-       RNA_def_property_ui_text(prop, "Like Y", "Copy the target's Y scale.");
+       RNA_def_property_ui_text(prop, "Copy Y", "Copy the target's Y scale.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
-       prop= RNA_def_property(srna, "size_like_z", PROP_BOOLEAN, PROP_NONE);
+       prop= RNA_def_property(srna, "use_z", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", SIZELIKE_Z);
-       RNA_def_property_ui_text(prop, "Like Z", "Copy the target's Z scale.");
+       RNA_def_property_ui_text(prop, "Copy Z", "Copy the target's Z scale.");
        RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, 
"rna_Constraint_update");
 
        prop= RNA_def_property(srna, "use_offset", PROP_BOOLEAN, PROP_NONE);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to