diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-16 11:48:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-16 11:48:22 +0400 |
commit | 3ede710a3c6b8c5bd10136e468019091110006ac (patch) | |
tree | 5f13aff380d460b4a7e891d60d7f297447ea4756 /release | |
parent | 4a5a9dc71c181c849e352d534d80144fd190411c (diff) |
fix for baking actions for objects with no animation data.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/nla.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/nla.py b/release/scripts/startup/bl_operators/nla.py index 6b324111903..7cbdaa3ddbf 100644 --- a/release/scripts/startup/bl_operators/nla.py +++ b/release/scripts/startup/bl_operators/nla.py @@ -118,8 +118,10 @@ def bake(frame_start, # ------------------------------------------------------------------------- # Create action + # incase animation data hassnt been created + atd = obj.animation_data_create() action = bpy.data.actions.new("Action") - obj.animation_data.action = action + atd.action = action if do_pose: pose_items = pose.bones.items() |