Skip to content

Commit

Permalink
set id_data tag
Browse files Browse the repository at this point in the history
  • Loading branch information
akikoee committed Jan 13, 2025
1 parent 7d89814 commit a23c74d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion i_scene_cp77_gltf/exporters/glb_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def export_meshes(context, filepath, export_visible, limit_selected, static_prop
return {'CANCELLED'}

for shapekey in mesh.data.shape_keys.key_blocks:
if(shapekey.tag == False):
if(shapekey.id_data.tag == False):
show_message("Custom Shapekeys detected! Please remove them before exporting.")
return {'CANCELLED'}

Expand Down
2 changes: 1 addition & 1 deletion i_scene_cp77_gltf/importers/import_with_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def CP77GLBimport(self, with_materials, remap_depot, exclude_unused_mats=True, i
if obj not in bpy.data.meshes.keys():
continue
for shapekey in bpy.data.meshes[obj].shape_keys.key_blocks:
shapekey.tag = True
shapekey.id_data.tag = True


if not cp77_addon_prefs.non_verbose:
Expand Down

0 comments on commit a23c74d

Please sign in to comment.