[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54614] trunk/blender/release/scripts/ startup/bl_operators/rigidbody.py: ribidbody: Fix setting " Bake to Keyframes" start frame above 2

Sergej Reich sergej.reich at googlemail.com
Sun Feb 17 19:13:22 CET 2013


Revision: 54614
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54614
Author:   sergof
Date:     2013-02-17 18:13:22 +0000 (Sun, 17 Feb 2013)
Log Message:
-----------
ribidbody: Fix setting "Bake to Keyframes" start frame above 2

Simulation needs to run from the beginning to work properly.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/rigidbody.py

Modified: trunk/blender/release/scripts/startup/bl_operators/rigidbody.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/rigidbody.py	2013-02-17 15:04:56 UTC (rev 54613)
+++ trunk/blender/release/scripts/startup/bl_operators/rigidbody.py	2013-02-17 18:13:22 UTC (rev 54614)
@@ -120,7 +120,8 @@
 
         if objects:
             # store transformation data
-            for f in list(range(self.frame_start, self.frame_end + 1)):
+            # need to start at scene start frame so simulation is run from the beginning
+            for f in list(range(scene.frame_start, self.frame_end + 1)):
                 scene.frame_set(f)
                 if f in frames:
                     mat = {}




More information about the Bf-blender-cvs mailing list