* Fixing some UI Increment/Decrement issues, where click on left/right triangle in the button would change a decimal which was not seen in the UI.
* Made Decimate slider a percentage slider (as the dna name says percent as well).
This commit is contained in:
@@ -751,13 +751,13 @@ static void rna_def_font(BlenderRNA *brna, StructRNA *srna)
|
||||
prop= RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "fsize");
|
||||
RNA_def_property_range(prop, 0.0001f, 10000.0f);
|
||||
RNA_def_property_ui_range(prop, 0.01, 10, 1, 1);
|
||||
RNA_def_property_ui_range(prop, 0.01, 10, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Font size", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "small_caps_scale", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "smallcaps_scale");
|
||||
RNA_def_property_ui_range(prop, 0, 1.0, 0.1, 0);
|
||||
RNA_def_property_ui_range(prop, 0, 1.0, 1, 2);
|
||||
RNA_def_property_ui_text(prop, "Small Caps", "Scale of small capitals");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
@@ -1110,20 +1110,20 @@ static void rna_def_curve(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "offset", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "width");
|
||||
RNA_def_property_ui_range(prop, 0, 2.0, 0.1, 0);
|
||||
RNA_def_property_ui_range(prop, 0, 2.0, 0.1, 3);
|
||||
RNA_def_property_ui_text(prop, "Width", "Scale the original width (1.0) based on given factor");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "extrude", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "ext1");
|
||||
RNA_def_property_ui_range(prop, 0, 100.0, 0.1, 0);
|
||||
RNA_def_property_ui_range(prop, 0, 100.0, 0.1, 3);
|
||||
RNA_def_property_range(prop, 0.0, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Extrude", "Amount of curve extrusion when not using a bevel object");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "bevel_depth", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "ext2");
|
||||
RNA_def_property_ui_range(prop, 0, 100.0, 0.1, 0);
|
||||
RNA_def_property_ui_range(prop, 0, 100.0, 0.1, 3);
|
||||
RNA_def_property_ui_text(prop, "Bevel Depth", "Bevel depth when not using a bevel object");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
|
||||
@@ -811,9 +811,10 @@ static void rna_def_modifier_decimate(BlenderRNA *brna)
|
||||
RNA_def_struct_sdna(srna, "DecimateModifierData");
|
||||
RNA_def_struct_ui_icon(srna, ICON_MOD_DECIM);
|
||||
|
||||
prop= RNA_def_property(srna, "ratio", PROP_FLOAT, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "ratio", PROP_FLOAT, PROP_PERCENTAGE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "percent");
|
||||
RNA_def_property_range(prop, 0, 1);
|
||||
RNA_def_property_ui_range(prop, 0, 1, 1, 2);
|
||||
RNA_def_property_ui_text(prop, "Ratio", "Defines the ratio of triangles to reduce to");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -1356,28 +1357,28 @@ static void rna_def_modifier_uvproject(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "aspect_x", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "aspectx");
|
||||
RNA_def_property_range(prop, 1, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 1, 1000, 0.2, 2);
|
||||
RNA_def_property_ui_range(prop, 1, 1000, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Horizontal Aspect Ratio", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop= RNA_def_property(srna, "aspect_y", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "aspecty");
|
||||
RNA_def_property_range(prop, 1, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 1, 1000, 0.2, 2);
|
||||
RNA_def_property_ui_range(prop, 1, 1000, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Vertical Aspect Ratio", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop= RNA_def_property(srna, "scale_x", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "scalex");
|
||||
RNA_def_property_range(prop, 0, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0, 1000, 0.2, 2);
|
||||
RNA_def_property_ui_range(prop, 0, 1000, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Horizontal Scale", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop= RNA_def_property(srna, "scale_y", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "scaley");
|
||||
RNA_def_property_range(prop, 0, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0, 1000, 0.2, 2);
|
||||
RNA_def_property_ui_range(prop, 0, 1000, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Vertical Scale", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -1425,7 +1426,7 @@ static void rna_def_modifier_smooth(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "fac");
|
||||
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, -10, 10, 0.5, 2);
|
||||
RNA_def_property_ui_range(prop, -10, 10, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Factor", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -1504,13 +1505,13 @@ static void rna_def_modifier_cast(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "radius", PROP_FLOAT, PROP_DISTANCE);
|
||||
RNA_def_property_range(prop, 0, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 10, 2);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 5, 2);
|
||||
RNA_def_property_ui_text(prop, "Radius", "Only deform vertices within this distance from the center of the effect (leave as 0 for infinite.)");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop= RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 10, 2);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 5, 2);
|
||||
RNA_def_property_ui_text(prop, "Size", "Size of projection shape (leave as 0 for auto.)");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -2051,7 +2052,7 @@ static void rna_def_modifier_simpledeform(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "factor", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, -10, 10, 0.5, 2);
|
||||
RNA_def_property_ui_range(prop, -10, 10, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Factor", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
|
||||
@@ -241,7 +241,7 @@ static void rna_def_lighting(BlenderRNA *brna)
|
||||
|
||||
prop= RNA_def_property(srna, "environment_energy", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "ao_env_energy");
|
||||
RNA_def_property_ui_range(prop, 0, FLT_MAX, 0.1, 2);
|
||||
RNA_def_property_ui_range(prop, 0, FLT_MAX, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Environment Color", "Defines the strength of environment light");
|
||||
RNA_def_property_update(prop, 0, "rna_World_update");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user