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/blender/imp/gltf2_blender_light.py')
-rw-r--r--io_scene_gltf2/blender/imp/gltf2_blender_light.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_light.py b/io_scene_gltf2/blender/imp/gltf2_blender_light.py
index 71990eb3..9e6b8a96 100644
--- a/io_scene_gltf2/blender/imp/gltf2_blender_light.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_light.py
@@ -16,6 +16,7 @@ import bpy
from math import pi
from ..com.gltf2_blender_extras import set_extras
+from io_scene_gltf2.io.imp.gltf2_io_user_extensions import import_user_extensions
class BlenderLight():
@@ -24,9 +25,12 @@ class BlenderLight():
raise RuntimeError("%s should not be instantiated" % cls)
@staticmethod
- def create(gltf, light_id):
+ def create(gltf, vnode, light_id):
"""Light creation."""
pylight = gltf.data.extensions['KHR_lights_punctual']['lights'][light_id]
+
+ import_user_extensions('gather_import_light_before_hook', gltf, vnode, pylight)
+
if pylight['type'] == "directional":
light = BlenderLight.create_directional(gltf, light_id)
elif pylight['type'] == "point":