From 3b33d8dadeee09e9cd4b42f35a03264aab6b3347 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 24 Sep 2011 11:43:06 +0900 Subject: [PATCH] Make the basis shape key active on import. Blender must have an active shape key before shape key animation will work. This fixes the models being locked to the first frame until a shape key is selected via the UI. --- 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 1049c729b..48c2b6690 100644 --- a/tools/io_mesh_qfmdl/import_mdl.py +++ b/tools/io_mesh_qfmdl/import_mdl.py @@ -151,6 +151,7 @@ def make_shape_key(mdl, framenum, subframenum=0): def build_shape_keys(mdl): mdl.keys = [] mdl.obj.shape_key_add("Basis") + mdl.obj.active_shape_key_index = 0 for i, frame in enumerate(mdl.frames): frame = mdl.frames[i] if frame.type: