Set fakeuser on actions.

Without fakeuser set, blender will toss out the actions on save and reload.
Converting to an nla strip might take care of that, but I haven't figured
out how to do that yet, so avoid any nasty surprised for the user.
This commit is contained in:
Bill Currie 2012-04-16 13:30:58 +09:00
parent 70f500a087
commit 0952e918dd

View file

@ -170,6 +170,7 @@ def build_actions(mdl):
sk.animation_data_create()
sk.animation_data.action = bpy.data.actions.new(frame.name)
act=sk.animation_data.action
act.use_fake_user = True
data = []
other_keys = mdl.keys[:]
if frame.type: