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>2019-10-12 18:15:22 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-10-12 18:15:22 +0300
commitecdaef952383c28aa3793f86cee160202f46913b (patch)
treebe6556bc3a4af75a793cca17a788b187e87b0c72 /io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py
parentb9b1814a4c26f73aae7f306c9ff2e21b7b7bdcee (diff)
glTF importer: Import extra data as custom properties
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py')
-rw-r--r--io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py
index c87318d0..dbb59e21 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_lights.py
@@ -17,6 +17,7 @@ import math
from typing import Optional, List, Dict, Any
from io_scene_gltf2.blender.exp.gltf2_blender_gather_cache import cached
+from ..com.gltf2_blender_extras import generate_extras
from io_scene_gltf2.io.com import gltf2_io_lights_punctual
from io_scene_gltf2.io.com import gltf2_io_debug
@@ -112,6 +113,8 @@ def __gather_extensions(blender_lamp, export_settings) -> Optional[dict]:
def __gather_extras(blender_lamp, export_settings) -> Optional[Any]:
+ if export_settings['gltf_extras']:
+ return generate_extras(blender_lamp)
return None