Skip to content

Commit

Permalink
Fix #2259 Fix Extension declaration for vendor extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Jun 1, 2024
1 parent 079fcf4 commit 22e5e39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,9 @@ def __should_include_json_value(key, value, export_settings):
# We can't have this empty collection, because it can't be animated
return False
elif not __is_empty_collection(value):
if key.startswith("KHR_") or key.startswith("EXT_"):
export_settings['gltf_need_to_keep_extension_declaration'].append(key)
# If extensions is not empty, export it, always
# This can be an official extension, or a user extension
export_settings['gltf_need_to_keep_extension_declaration'].append(key)
elif __is_empty_collection(value) and key in allowed_empty_collections:
# We can have this empty collection for this extension. So keeping it, and store that this extension declaration needs to be kept
export_settings['gltf_need_to_keep_extension_declaration'].append(key)
Expand Down

0 comments on commit 22e5e39

Please sign in to comment.