diff --git a/tools/io_mesh_qfmdl/import_mdl.py b/tools/io_mesh_qfmdl/import_mdl.py index 2a7da9a93..76f393424 100644 --- a/tools/io_mesh_qfmdl/import_mdl.py +++ b/tools/io_mesh_qfmdl/import_mdl.py @@ -226,7 +226,7 @@ def build_actions(mdl): ad = sk.animation_data_create() track = ad.nla_tracks.new(); track.name = mdl.name - start_frame = 1.0 + start_frame = 1 for frame in mdl.frames: act = bpy.data.actions.new(frame.name) data = [] @@ -260,7 +260,7 @@ def build_actions(mdl): data.append((k, co)) set_keys(act, data) track.strips.new(act.name, start_frame, act) - start_frame += act.frame_range[1] + start_frame += int(act.frame_range[1]) def merge_frames(mdl): def get_base(name):