From 8a7d9b0958439c378564b0b1dc9f9d9cc1a27bb1 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Fri, 2 Jun 2023 21:49:24 -0500 Subject: [PATCH] Animation Track patch cleanup --- addons/io_scene_swbf_msh/msh_anim_to_blend.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/io_scene_swbf_msh/msh_anim_to_blend.py b/addons/io_scene_swbf_msh/msh_anim_to_blend.py index d76507b..39dc5f5 100644 --- a/addons/io_scene_swbf_msh/msh_anim_to_blend.py +++ b/addons/io_scene_swbf_msh/msh_anim_to_blend.py @@ -43,7 +43,6 @@ def extract_and_apply_anim(filename : str, scene : Scene): if anim_name == nt.strips[0].name: arma.animation_data.nla_tracks.remove(nt) - action = bpy.data.actions.new(anim_name) action.use_fake_user = True @@ -106,6 +105,5 @@ def extract_and_apply_anim(filename : str, scene : Scene): fcurve_loc_y.keyframe_points.insert(i,t.y) fcurve_loc_z.keyframe_points.insert(i,t.z) - arma.animation_data.action = action track = arma.animation_data.nla_tracks.new() track.strips.new(action.name, action.frame_range[0], action)