Skip to content
Snippets Groups Projects
gltf2_io_user_extensions.py 444 B
Newer Older
  • Learn to ignore specific revisions
  • # SPDX-License-Identifier: Apache-2.0
    
    # Copyright 2018-2021 The glTF-Blender-IO authors.
    
    
    def import_user_extensions(hook_name, gltf, *args):
        for extension in gltf.import_user_extensions:
    
            hook = getattr(extension, hook_name, None)
            if hook is not None:
                try:
    
                except Exception as e:
                    print(hook_name, "fails on", extension)
                    print(str(e))