Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-16 11:48:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-16 11:48:22 +0400
commit3ede710a3c6b8c5bd10136e468019091110006ac (patch)
tree5f13aff380d460b4a7e891d60d7f297447ea4756 /release
parent4a5a9dc71c181c849e352d534d80144fd190411c (diff)
fix for baking actions for objects with no animation data.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/nla.py4
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()