Commit: de4629880eade996c91ea287c380d0d6c9a63e8d
Author: Sergey Sharybin
Date:   Thu Jul 24 19:18:00 2014 +0600
Branches: master
https://developer.blender.org/rBde4629880eade996c91ea287c380d0d6c9a63e8d

Fix T40925: Scene gravity hard limited

Remove hard limit, but keep soft limit because it might cause some
negative effect on physics stability.

===================================================================

M       source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c 
b/source/blender/makesrna/intern/rna_scene.c
index 192ec0b..1c6d0fa 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -5638,7 +5638,7 @@ void RNA_def_scene(BlenderRNA *brna)
        prop = RNA_def_property(srna, "gravity", PROP_FLOAT, PROP_ACCELERATION);
        RNA_def_property_float_sdna(prop, NULL, "physics_settings.gravity");
        RNA_def_property_array(prop, 3);
-       RNA_def_property_range(prop, -200.0f, 200.0f);
+       RNA_def_property_ui_range(prop, -200.0f, 200.0f, 1, 2);
        RNA_def_property_ui_text(prop, "Gravity", "Constant acceleration in a 
given direction");
        RNA_def_property_update(prop, 0, "rna_Physics_update");

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to