Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_gltf2/io/imp/gltf2_io_gltf.py')
-rwxr-xr-xio_scene_gltf2/io/imp/gltf2_io_gltf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/io_scene_gltf2/io/imp/gltf2_io_gltf.py b/io_scene_gltf2/io/imp/gltf2_io_gltf.py
index aa9bda38..407afccd 100755
--- a/io_scene_gltf2/io/imp/gltf2_io_gltf.py
+++ b/io_scene_gltf2/io/imp/gltf2_io_gltf.py
@@ -38,6 +38,7 @@ class glTFImporter():
self.buffers = {}
self.accessor_cache = {}
self.decode_accessor_cache = {}
+ self.import_user_extensions = import_settings['import_user_extensions']
if 'loglevel' not in self.import_settings.keys():
self.import_settings['loglevel'] = logging.ERROR
@@ -57,6 +58,13 @@ class glTFImporter():
'KHR_draco_mesh_compression'
]
+ # Add extensions required supported by custom import extensions
+ for import_extension in self.import_user_extensions:
+ if hasattr(import_extension, "extensions"):
+ for custom_extension in import_extension.extensions:
+ if custom_extension.required:
+ self.extensions_managed.append(custom_extension.name)
+
@staticmethod
def load_json(content):
def bad_constant(val):