RNA: angle step-sizes were too small
These were ignored previously, so it wasn't noticeable.
This commit is contained in:
@@ -746,7 +746,7 @@ static void rna_def_edit_bone(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "roll", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "roll");
|
||||
RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 0.1, 2);
|
||||
RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 10, 2);
|
||||
RNA_def_property_ui_text(prop, "Roll", "Bone rotation around head-tail axis");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
|
||||
|
||||
@@ -747,11 +747,12 @@ static int rna_Curve_is_editmode_get(PointerRNA *ptr)
|
||||
|
||||
#else
|
||||
|
||||
static const float tilt_limit = DEG2RADF(21600.0f);
|
||||
|
||||
static void rna_def_bpoint(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
const float tilt_limit = DEG2RADF(21600.0f);
|
||||
|
||||
srna = RNA_def_struct(brna, "SplinePoint", NULL);
|
||||
RNA_def_struct_sdna(srna, "BPoint");
|
||||
@@ -785,7 +786,7 @@ static void rna_def_bpoint(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "tilt", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "alfa");
|
||||
RNA_def_property_range(prop, -tilt_limit, tilt_limit);
|
||||
RNA_def_property_ui_range(prop, -tilt_limit, tilt_limit, 0.1, 3);
|
||||
RNA_def_property_ui_range(prop, -tilt_limit, tilt_limit, 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Tilt", "Tilt in 3D View");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
@@ -872,7 +873,8 @@ static void rna_def_beztriple(BlenderRNA *brna)
|
||||
/* Number values */
|
||||
prop = RNA_def_property(srna, "tilt", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "alfa");
|
||||
/*RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);*/
|
||||
RNA_def_property_range(prop, -tilt_limit, tilt_limit);
|
||||
RNA_def_property_ui_range(prop, -tilt_limit, tilt_limit, 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Tilt", "Tilt in 3D View");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
|
||||
@@ -1493,7 +1493,7 @@ static void rna_def_modifier_decimate(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "angle_limit", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "angle");
|
||||
RNA_def_property_range(prop, 0, DEG2RAD(180));
|
||||
RNA_def_property_ui_range(prop, 0, DEG2RAD(180), 100, 2);
|
||||
RNA_def_property_ui_range(prop, 0, DEG2RAD(180), 10, 2);
|
||||
RNA_def_property_ui_text(prop, "Angle Limit", "Only dissolve angles below this (planar only)");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -2801,7 +2801,7 @@ static void rna_def_modifier_bevel(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "angle_limit", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "bevel_angle");
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 100, 2);
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 2);
|
||||
RNA_def_property_ui_text(prop, "Angle", "Angle above which to bevel edges");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -3255,7 +3255,7 @@ static void rna_def_modifier_screw(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE);
|
||||
RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 2, -1);
|
||||
RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 10, -1);
|
||||
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Angle", "Angle of revolution");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
@@ -2550,7 +2550,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "overhang_max");
|
||||
RNA_def_property_float_default(prop, 0.5f);
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 0.001, 3);
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Overhang Max", "Maximum angle to display");
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
@@ -2589,7 +2589,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "distort_min");
|
||||
RNA_def_property_float_default(prop, 0.5f);
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 0.001, 3);
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Min", "Minimum angle to display");
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
@@ -2597,7 +2597,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "distort_max");
|
||||
RNA_def_property_float_default(prop, 0.5f);
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 0.001, 3);
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Max", "Maximum angle to display");
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
@@ -2606,7 +2606,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "sharp_min");
|
||||
RNA_def_property_float_default(prop, 0.5f);
|
||||
RNA_def_property_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f), 0.001, 3);
|
||||
RNA_def_property_ui_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Min", "Minimum angle to display");
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
@@ -2614,7 +2614,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "sharp_max");
|
||||
RNA_def_property_float_default(prop, 0.5f);
|
||||
RNA_def_property_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f), 0.001, 3);
|
||||
RNA_def_property_ui_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Max", "Maximum angle to display");
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user