From 7e4f1f7a72315e7197bfb58a5b4bcd712a568dbc Mon Sep 17 00:00:00 2001 From: Simarilius-uk <simarilius@yahoo.com> Date: Sat, 20 Apr 2024 12:21:13 +0100 Subject: [PATCH] Fix the import properly. --- i_scene_cp77_gltf/importers/entity_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i_scene_cp77_gltf/importers/entity_import.py b/i_scene_cp77_gltf/importers/entity_import.py index 3e7c7f3..eb150b4 100644 --- a/i_scene_cp77_gltf/importers/entity_import.py +++ b/i_scene_cp77_gltf/importers/entity_import.py @@ -108,7 +108,7 @@ def importEnt( filepath='', appearances=[], exclude_meshes=[], with_materials=Tr if len(anim_files)>0 and len(ent_rigs)>0: # we have glbs and we have rigs called up in the ent # get the armatures already in the model oldarms= [x for x in bpy.data.objects if 'Armature' in x.name] - animsinres=[x for x in anim_files if x[:-3]+'anims' in resolved] + animsinres=[x for x in anim_files if x[:-4] in resolved] if len(animsinres)==0: for anim in anim_files: if os.path.exists(anim[:-3]+'anims.json'):