restored old 'uv orco' for curves, renamed to 'map along length'
This commit is contained in:
@@ -126,7 +126,7 @@ class DATA_PT_shape_curve(DataButtonsPanel):
|
||||
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")
|
||||
|
||||
|
||||
|
||||
@@ -693,9 +693,9 @@ static void rna_def_nurbs(BlenderRNA *brna, StructRNA *srna)
|
||||
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 @@ 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, "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");
|
||||
|
||||
Reference in New Issue
Block a user