ribidbody: Fix setting "Bake to Keyframes" start frame above 2

Simulation needs to run from the beginning to work properly.
This commit is contained in:
Sergej Reich 2013-02-17 18:13:22 +00:00
parent 3de87ebf64
commit 85b6bbe6cd

@ -120,7 +120,8 @@ class BakeToKeyframes(Operator):
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 = {}