diff options
author | Ton Roosendaal <ton@blender.org> | 2011-05-10 19:13:03 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-05-10 19:13:03 +0400 |
commit | f1f1dde1c8d75a26dfc315e04228a27223122e8d (patch) | |
tree | 622c1cfb1148302a5732c12e4990aee967733f4c /source/blender | |
parent | 89a166d0deb5587ff89bf4d07f8533bf55fc5d8f (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/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 3 |
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); |