forked from bartvdbraak/blender
patch [#28320] Small change to trunk needed for Motion Capture Addon - GSoC 2011 - Pepper Branch
from Benjy Cook (benjycook)
This commit is contained in:
parent
17c8621cc8
commit
aa7545b0ea
@ -84,6 +84,7 @@ def bake(frame_start,
|
||||
do_pose=True,
|
||||
do_object=True,
|
||||
do_constraint_clear=False,
|
||||
action=None,
|
||||
):
|
||||
|
||||
scene = bpy.context.scene
|
||||
@ -121,7 +122,8 @@ def bake(frame_start,
|
||||
|
||||
# incase animation data hassnt been created
|
||||
atd = obj.animation_data_create()
|
||||
action = bpy.data.actions.new("Action")
|
||||
if action is None:
|
||||
action = bpy.data.actions.new("Action")
|
||||
atd.action = action
|
||||
|
||||
if do_pose:
|
||||
|
Loading…
Reference in New Issue
Block a user