From 2de1c1fe1ba53ae2ab0a59dd8810972bdd8b6af2 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 16 Nov 2010 12:10:57 +0000 Subject: [PATCH] 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... :) --- release/scripts/ui/properties_data_curve.py | 2 +- source/blender/makesrna/intern/rna_curve.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/release/scripts/ui/properties_data_curve.py b/release/scripts/ui/properties_data_curve.py index 54fa6e2d460..187a25e8d67 100644 --- a/release/scripts/ui/properties_data_curve.py +++ b/release/scripts/ui/properties_data_curve.py @@ -118,7 +118,7 @@ class DATA_PT_shape_curve(CurveButtonsPanel, bpy.types.Panel): 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") diff --git a/source/blender/makesrna/intern/rna_curve.c b/source/blender/makesrna/intern/rna_curve.c index c7802de9ebb..e47a1226c96 100644 --- a/source/blender/makesrna/intern/rna_curve.c +++ b/source/blender/makesrna/intern/rna_curve.c @@ -745,9 +745,9 @@ static void rna_def_nurbs(BlenderRNA *brna, StructRNA *srna) 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 @@ static void rna_def_curve(BlenderRNA *brna) 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 */