diff options
Diffstat (limited to 'io_scene_gltf2/io')
-rwxr-xr-x | io_scene_gltf2/io/imp/gltf2_io_gltf.py | 6 |
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 |