[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33097] trunk/blender: Fixed wrong rna name for the old "UV Orco" option.

Ton Roosendaal ton at blender.org
Tue Nov 16 13:10:58 CET 2010


Revision: 33097
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33097
Author:   ton
Date:     2010-11-16 13:10:57 +0100 (Tue, 16 Nov 2010)

Log Message:
-----------
Fixed wrong rna name for the old "UV Orco" option.

It was called "map on length", but it actually makes the UV
values of curves/nurbs to become used as "Generated" texture 
map input.

Sorry; this might break own local UI py script saves... :)

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

Modified: trunk/blender/release/scripts/ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_data_curve.py	2010-11-16 09:47:01 UTC (rev 33096)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py	2010-11-16 12:10:57 UTC (rev 33097)
@@ -118,7 +118,7 @@
             sub.prop(curve, "use_fill_deform", text="Use Deformed")
 
         col.label(text="Textures:")
-        col.prop(curve, "use_map_on_length")
+        col.prop(curve, "use_uv_as_generated")
         col.prop(curve, "use_auto_texspace")
 
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_curve.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_curve.c	2010-11-16 09:47:01 UTC (rev 33096)
+++ trunk/blender/source/blender/makesrna/intern/rna_curve.c	2010-11-16 12:10:57 UTC (rev 33097)
@@ -745,9 +745,9 @@
 	PropertyRNA *prop;
 	
 	/* flags */
-	prop= RNA_def_property(srna, "use_map_on_length", PROP_BOOLEAN, PROP_NONE);
+	prop= RNA_def_property(srna, "use_uv_as_generated", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_UV_ORCO);
-	RNA_def_property_ui_text(prop, "Map Along Length", "Generate texture mapping coordinates following the curve direction, rather than the local bounding box");
+	RNA_def_property_ui_text(prop, "Use UV for Mapping", "Uses the UV values as Generated textured coordinates");
 	RNA_def_property_update(prop, 0, "rna_Curve_update_data");
 }
 
@@ -1263,9 +1263,9 @@
 	 RNA_def_property_editable_func(prop, texspace_editable);
 	 RNA_def_property_update(prop, 0, "rna_Curve_update_data");*/
 	
-	prop= RNA_def_property(srna, "use_map_on_length", PROP_BOOLEAN, PROP_NONE);
+	prop= RNA_def_property(srna, "use_uv_as_generated", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_UV_ORCO);
-	RNA_def_property_ui_text(prop, "Map Along Length", "Generate texture mapping coordinates following the curve direction, rather than the local bounding box");
+	RNA_def_property_ui_text(prop, "Use UV for mapping", "Uses the UV values as Generated textured coordinates");
 	RNA_def_property_update(prop, 0, "rna_Curve_update_data");
 	
 	/* materials */





More information about the Bf-blender-cvs mailing list