Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-08 22:55:08 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-08 22:55:08 +0400
commit2b2099cd519d2723dd79af2e1d9035c7cbb12022 (patch)
treea12fa477bb34c227d9ea69811347f796927b48c7 /source/blender/makesrna/intern/rna_rigidbody.c
parentd2b55d1171af787f603c6c14129224dc1c038e85 (diff)
Fix #34875: 0 digits of precision was not supported for FloatProperty, now
you can specify precision=0 for this, and use -1 for the default 2.
Diffstat (limited to 'source/blender/makesrna/intern/rna_rigidbody.c')
-rw-r--r--source/blender/makesrna/intern/rna_rigidbody.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_rigidbody.c b/source/blender/makesrna/intern/rna_rigidbody.c
index 171bc702bc5..6e86e49dada 100644
--- a/source/blender/makesrna/intern/rna_rigidbody.c
+++ b/source/blender/makesrna/intern/rna_rigidbody.c
@@ -639,7 +639,7 @@ static void rna_def_rigidbody_world(BlenderRNA *brna)
prop = RNA_def_property(srna, "steps_per_second", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "steps_per_second");
RNA_def_property_range(prop, 1, SHRT_MAX);
- RNA_def_property_ui_range(prop, 60, 1000, 1, 0);
+ RNA_def_property_ui_range(prop, 60, 1000, 1, -1);
RNA_def_property_int_default(prop, 60);
RNA_def_property_ui_text(prop, "Steps Per Second",
"Number of simulation steps taken per second (higher values are more accurate "
@@ -650,7 +650,7 @@ static void rna_def_rigidbody_world(BlenderRNA *brna)
prop = RNA_def_property(srna, "num_solver_iterations", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "num_solver_iterations");
RNA_def_property_range(prop, 1, 1000);
- RNA_def_property_ui_range(prop, 10, 100, 1, 0);
+ RNA_def_property_ui_range(prop, 10, 100, 1, -1);
RNA_def_property_int_default(prop, 10);
RNA_def_property_int_funcs(prop, NULL, "rna_RigidBodyWorld_num_solver_iterations_set", NULL);
RNA_def_property_ui_text(prop, "Solver Iterations",
@@ -907,7 +907,7 @@ static void rna_def_rigidbody_constraint(BlenderRNA *brna)
prop = RNA_def_property(srna, "num_solver_iterations", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "num_solver_iterations");
RNA_def_property_range(prop, 1, 1000);
- RNA_def_property_ui_range(prop, 1, 100, 1, 0);
+ RNA_def_property_ui_range(prop, 1, 100, 1, -1);
RNA_def_property_int_default(prop, 10);
RNA_def_property_int_funcs(prop, NULL, "rna_RigidBodyCon_num_solver_iterations_set", NULL);
RNA_def_property_ui_text(prop, "Solver Iterations",