[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37545] trunk/blender/release/scripts/ startup/bl_operators/nla.py: fix for baking actions for objects with no animation data.
Campbell Barton
ideasman42 at gmail.com
Thu Jun 16 09:48:22 CEST 2011
Revision: 37545
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37545
Author: campbellbarton
Date: 2011-06-16 07:48:22 +0000 (Thu, 16 Jun 2011)
Log Message:
-----------
fix for baking actions for objects with no animation data.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_operators/nla.py
Modified: trunk/blender/release/scripts/startup/bl_operators/nla.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/nla.py 2011-06-16 07:02:33 UTC (rev 37544)
+++ trunk/blender/release/scripts/startup/bl_operators/nla.py 2011-06-16 07:48:22 UTC (rev 37545)
@@ -118,8 +118,10 @@
# -------------------------------------------------------------------------
# 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()
More information about the Bf-blender-cvs
mailing list