Skip to content
Snippets Groups Projects
Commit b9c0e287 authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF importer: cleanup variable names to avoid confusion

parent 3c19be6f
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (3, 4, 14),
"version": (3, 4, 15),
'blender': (3, 3, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
......
# SPDX-License-Identifier: Apache-2.0
# Copyright 2018-2021 The glTF-Blender-IO authors.
def import_user_extensions(hook_name, gltf_importer, *args):
for extension in gltf_importer.import_user_extensions:
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:
hook(*args, gltf_importer)
hook(*args, gltf)
except Exception as e:
print(hook_name, "fails on", extension)
print(str(e))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment