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-03-23 12:01:09 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-03-23 12:01:09 +0300
commit5371d6eadeafa35be8bc4f81057c3c4bfaf6d0d9 (patch)
treea6c0a337b3ffd324344858e3282a7af380e5093d /io_scene_gltf2/io
parente16c6704b32741c510bb05993b7edf77d4a77b57 (diff)
glTF exporter: support empty images
Diffstat (limited to 'io_scene_gltf2/io')
-rwxr-xr-xio_scene_gltf2/io/com/gltf2_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/io/com/gltf2_io.py b/io_scene_gltf2/io/com/gltf2_io.py
index 1332adf6..1208c06a 100755
--- a/io_scene_gltf2/io/com/gltf2_io.py
+++ b/io_scene_gltf2/io/com/gltf2_io.py
@@ -1104,7 +1104,7 @@ class Texture:
result["extras"] = self.extras
result["name"] = from_union([from_str, from_none], self.name)
result["sampler"] = from_union([from_int, from_none], self.sampler)
- result["source"] = from_int(self.source)
+ result["source"] = from_int(self.source) # most viewers can't handle missing sources
return result