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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-05-10 19:13:03 +0400
committerTon Roosendaal <ton@blender.org>2011-05-10 19:13:03 +0400
commitf1f1dde1c8d75a26dfc315e04228a27223122e8d (patch)
tree622c1cfb1148302a5732c12e4990aee967733f4c /source
parent89a166d0deb5587ff89bf4d07f8533bf55fc5d8f (diff)
Bugfix #27311
Physics Gravity property now has UI range of 0-25, but real range goes to 10000 to allow scaled scenes.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 1497f5a4405..8bbde89475a 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1788,7 +1788,8 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
prop= RNA_def_property(srna, "physics_gravity", PROP_FLOAT, PROP_ACCELERATION);
RNA_def_property_float_sdna(prop, NULL, "gravity");
- RNA_def_property_range(prop, 0.0, 25.0);
+ RNA_def_property_ui_range(prop, 0.0, 25.0, 1, 2);
+ RNA_def_property_range(prop, 0.0, 10000.0);
RNA_def_property_ui_text(prop, "Physics Gravity", "Gravitational constant used for physics simulation in the game engine");
RNA_def_property_update(prop, NC_SCENE, NULL);