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:
authorJulien Duroure <julien.duroure@gmail.com>2022-09-19 10:11:51 +0300
committerJulien Duroure <julien.duroure@gmail.com>2022-09-19 10:11:51 +0300
commitb9c0e2878e91ea955e2a765f0b68261f079b8ac3 (patch)
tree1ee3a2a0477a50d43154fa8aa8b540fda03ff144
parent3c19be6ffa066c78b844cdbe492c6ed02386d5a2 (diff)
glTF importer: cleanup variable names to avoid confusion
-rwxr-xr-xio_scene_gltf2/__init__.py2
-rw-r--r--io_scene_gltf2/io/imp/gltf2_io_user_extensions.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index b0bc8b9c..3034595b 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -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',
diff --git a/io_scene_gltf2/io/imp/gltf2_io_user_extensions.py b/io_scene_gltf2/io/imp/gltf2_io_user_extensions.py
index 505e3265..28f6678e 100644
--- a/io_scene_gltf2/io/imp/gltf2_io_user_extensions.py
+++ b/io_scene_gltf2/io/imp/gltf2_io_user_extensions.py
@@ -1,12 +1,12 @@
# 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))