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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-04-10 14:35:55 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-04-10 14:35:55 +0400
commite5e5a702bc80a61d178325cf6777aac6f10af8c0 (patch)
tree943d8b1a3471518d3e3d1a4283ecbf1203eb9270 /source/blender/makesrna/intern/rna_object.c
parent9fd6c7a9629c49f44d46283e5fc404f3994d4042 (diff)
Fix #30843: Blender Game in Metric Mode allows only a 10m Radius for Collision Bounds.
Now use soft limit of 0.01 .. 10.0 for radius but hard limit is 0.01 .. FLT_MAX
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index af5c3ccd6f1..21d4003bbf5 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -1486,7 +1486,8 @@ static void rna_def_object_game_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "radius", PROP_FLOAT, PROP_NONE|PROP_UNIT_LENGTH);
RNA_def_property_float_sdna(prop, NULL, "inertia");
- RNA_def_property_range(prop, 0.01, 10.0);
+ RNA_def_property_range(prop, 0.01f, FLT_MAX);
+ RNA_def_property_ui_range(prop, 0.01f, 10.0f, 1, 3);
RNA_def_property_ui_text(prop, "Radius", "Radius of bounding sphere and material physics");
RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, NULL);