From 0952e918dd65503a38676308970f3f8f216e063f Mon Sep 17 00:00:00 2001 From: Bill Currie <bill@taniwha.org> Date: Mon, 16 Apr 2012 13:30:58 +0900 Subject: [PATCH] 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. --- tools/io_mesh_qfmdl/import_mdl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/io_mesh_qfmdl/import_mdl.py b/tools/io_mesh_qfmdl/import_mdl.py index 4dbd96d50..09dc46e20 100644 --- a/tools/io_mesh_qfmdl/import_mdl.py +++ b/tools/io_mesh_qfmdl/import_mdl.py @@ -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: