diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-08 22:55:08 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-08 22:55:08 +0400 |
commit | 2b2099cd519d2723dd79af2e1d9035c7cbb12022 (patch) | |
tree | a12fa477bb34c227d9ea69811347f796927b48c7 /source/blender/makesrna/intern/rna_object.c | |
parent | d2b55d1171af787f603c6c14129224dc1c038e85 (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_object.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index 0c01d03888d..d2bb741057a 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -2537,14 +2537,14 @@ static void rna_def_object(BlenderRNA *brna) prop = RNA_def_property(srna, "dupli_frames_on", PROP_INT, PROP_NONE | PROP_UNIT_TIME); RNA_def_property_int_sdna(prop, NULL, "dupon"); RNA_def_property_range(prop, MINFRAME, MAXFRAME); - RNA_def_property_ui_range(prop, 1, 1500, 1, 0); + RNA_def_property_ui_range(prop, 1, 1500, 1, -1); RNA_def_property_ui_text(prop, "Dupli Frames On", "Number of frames to use between DupOff frames"); RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_internal_update"); prop = RNA_def_property(srna, "dupli_frames_off", PROP_INT, PROP_NONE | PROP_UNIT_TIME); RNA_def_property_int_sdna(prop, NULL, "dupoff"); RNA_def_property_range(prop, 0, MAXFRAME); - RNA_def_property_ui_range(prop, 0, 1500, 1, 0); + RNA_def_property_ui_range(prop, 0, 1500, 1, -1); RNA_def_property_ui_text(prop, "Dupli Frames Off", "Recurring frames to exclude from the Dupliframes"); RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_internal_update"); |