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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_light.py b/io_scene_gltf2/blender/imp/gltf2_blender_light.py
index 492c552e..6213091e 100644
--- a/io_scene_gltf2/blender/imp/gltf2_blender_light.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_light.py
@@ -15,6 +15,8 @@
import bpy
from math import pi
+from ..com.gltf2_blender_extras import set_extras
+
class BlenderLight():
"""Blender Light."""
@@ -45,6 +47,8 @@ class BlenderLight():
else:
bpy.data.scenes[gltf.blender_scene].collection.objects.link(obj)
+ set_extras(obj.data, pylight.get('extras'))
+
return obj
@staticmethod