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/io/imp/gltf2_io_gltf.py')
-rwxr-xr-xio_scene_gltf2/io/imp/gltf2_io_gltf.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/io/imp/gltf2_io_gltf.py b/io_scene_gltf2/io/imp/gltf2_io_gltf.py
index 83969d94..5bbab579 100755
--- a/io_scene_gltf2/io/imp/gltf2_io_gltf.py
+++ b/io_scene_gltf2/io/imp/gltf2_io_gltf.py
@@ -161,8 +161,10 @@ class glTFImporter():
if buffer.uri:
data = self.load_uri(buffer.uri)
- if data is not None:
- self.buffers[buffer_idx] = data
+ if data is None:
+ raise ImportError("Missing resource, '" + buffer.uri + "'.")
+ self.buffers[buffer_idx] = data
+
else:
# GLB-stored buffer