Physics Gravity property now has UI range of 0-25, but real range goes
to 10000 to allow scaled scenes.
This commit is contained in:
Ton Roosendaal 2011-05-10 15:13:03 +00:00
parent 89a166d0de
commit f1f1dde1c8

@ -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);