[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29443] trunk/blender: restored old ' uv orco' for curves, renamed to 'map along length'

Matt Ebb matt at mke3.net
Mon Jun 14 09:43:46 CEST 2010


Revision: 29443
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29443
Author:   broken
Date:     2010-06-14 09:43:45 +0200 (Mon, 14 Jun 2010)

Log Message:
-----------
restored old 'uv orco' for curves, renamed to 'map along length'

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-06-14 07:27:07 UTC (rev 29442)
+++ trunk/blender/release/scripts/ui/properties_data_curve.py	2010-06-14 07:43:45 UTC (rev 29443)
@@ -126,7 +126,7 @@
             sub.prop(curve, "use_deform_fill")
 
         col.label(text="Textures:")
-#       col.prop(curve, "uv_orco")
+        col.prop(curve, "map_along_length")
         col.prop(curve, "auto_texspace")
 
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_curve.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_curve.c	2010-06-14 07:27:07 UTC (rev 29442)
+++ trunk/blender/source/blender/makesrna/intern/rna_curve.c	2010-06-14 07:43:45 UTC (rev 29443)
@@ -693,9 +693,9 @@
 	PropertyRNA *prop;
 	
 	/* flags */
-	prop= RNA_def_property(srna, "uv_orco", PROP_BOOLEAN, PROP_NONE);
+	prop= RNA_def_property(srna, "map_along_length", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_UV_ORCO);
-	RNA_def_property_ui_text(prop, "UV Orco", "Forces to use UV coordinates for texture mapping '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_update(prop, 0, "rna_Curve_update_data");
 	
 	prop= RNA_def_property(srna, "vertex_normal_flip", PROP_BOOLEAN, PROP_NONE);
@@ -1200,6 +1200,11 @@
 	 RNA_def_property_editable_func(prop, texspace_editable);
 	 RNA_def_property_update(prop, 0, "rna_Curve_update_data");*/
 	
+	prop= RNA_def_property(srna, "map_along_length", 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_update(prop, 0, "rna_Curve_update_data");
+	
 	/* materials */
 	prop= RNA_def_property(srna, "materials", PROP_COLLECTION, PROP_NONE);
 	RNA_def_property_collection_sdna(prop, NULL, "mat", "totcol");





More information about the Bf-blender-cvs mailing list