diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-05-16 22:26:33 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-05-16 22:26:33 +0300 |
commit | 5671b3f53b705ed94a153d157b38de94a349fc19 (patch) | |
tree | 855fd55906d0f4269f0330bbaf84499c255c887b /io_scene_gltf2/blender | |
parent | d067968831e4b169a84c0c6bab4979f256f2b024 (diff) |
glTF exporter: Fix punctual light export
Data was not freed correctly, so lights could be exported multiple times
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gltf2_exporter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gltf2_exporter.py b/io_scene_gltf2/blender/exp/gltf2_blender_gltf2_exporter.py index 2fd0f52c..3704d6db 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gltf2_exporter.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gltf2_exporter.py @@ -229,7 +229,7 @@ class GlTF2Exporter: return name + image.file_extension @classmethod - def __get_key_path(cls, d: dict, keypath: List[str], default=[]): + def __get_key_path(cls, d: dict, keypath: List[str], default): """Create if necessary and get the element at key path from a dict""" key = keypath.pop(0) @@ -302,7 +302,7 @@ class GlTF2Exporter: # extensions that lie in the root of the glTF. # They need to be converted to a reference at place of occurrence if isinstance(node, gltf2_io_extensions.ChildOfRootExtension): - root_extension_list = self.__get_key_path(self.__gltf.extensions, [node.name] + node.path) + root_extension_list = self.__get_key_path(self.__gltf.extensions, [node.name] + node.path, []) idx = self.__append_unique_and_get_index(root_extension_list, extension) return idx |