diff --git a/i_scene_cp77_gltf/importers/import_with_materials.py b/i_scene_cp77_gltf/importers/import_with_materials.py index d03d271..b0f7bbc 100644 --- a/i_scene_cp77_gltf/importers/import_with_materials.py +++ b/i_scene_cp77_gltf/importers/import_with_materials.py @@ -189,15 +189,14 @@ def CP77GLBimport(self, with_materials, remap_depot, exclude_unused_mats=True, i import_mats(current_file_base_path, DepotPath, exclude_unused_mats, existingMeshes, gltf_importer, image_format, mats, validmats) if import_garmentsupport: - manage_garment_support(existingMeshes, gltf_importer) + manage_garment_support(existingMeshes, gltf_importer) - # check shapekeys and tag them (imported shapekey) - for obj in existingMeshes: - if obj not in bpy.data.meshes.keys(): - continue - for shapekey in bpy.data.meshes[obj].shape_keys.key_blocks: - shapekey.id_data.tag = True - + # check shapekeys and tag them (imported shapekey) + for obj in existingMeshes: + if obj not in bpy.data.meshes.keys(): + continue + for shapekey in bpy.data.meshes[obj].shape_keys.key_blocks: + shapekey.id_data.tag = True if not cp77_addon_prefs.non_verbose: print(f"GLB Import Time: {(time.time() - start_time)} Seconds")