diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-09-25 08:49:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-25 08:49:31 +0200 |
commit | 8c0595b7220c28066bafec4e82f48a3449414c25 (patch) | |
tree | 18d5c60d16f447f9e4c1ea5b66dfa83b6af0c803 | |
parent | 5a4e1045a6264fd888afe7641774a15beed0bdca (diff) | |
parent | d1e069ea23657ff08e8bed3f1f3453fb2921bda0 (diff) | |
download | redot-engine-8c0595b7220c28066bafec4e82f48a3449414c25.tar.gz |
Merge pull request #32306 from hbina/unused_variable
Fixed incorrect usage of variables in querying values.
-rw-r--r-- | editor/import/editor_scene_importer_gltf.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index cb21dda5ce..3da4b6439a 100644 --- a/editor/import/editor_scene_importer_gltf.cpp +++ b/editor/import/editor_scene_importer_gltf.cpp @@ -494,10 +494,10 @@ Error EditorSceneImporterGLTF::_parse_accessors(GLTFState &state) { const Dictionary &s = d["sparse"]; - ERR_FAIL_COND_V(!d.has("count"), ERR_PARSE_ERROR); - accessor.sparse_count = d["count"]; - ERR_FAIL_COND_V(!d.has("indices"), ERR_PARSE_ERROR); - const Dictionary &si = d["indices"]; + ERR_FAIL_COND_V(!s.has("count"), ERR_PARSE_ERROR); + accessor.sparse_count = s["count"]; + ERR_FAIL_COND_V(!s.has("indices"), ERR_PARSE_ERROR); + const Dictionary &si = s["indices"]; ERR_FAIL_COND_V(!si.has("bufferView"), ERR_PARSE_ERROR); accessor.sparse_indices_buffer_view = si["bufferView"]; @@ -508,8 +508,8 @@ Error EditorSceneImporterGLTF::_parse_accessors(GLTFState &state) { accessor.sparse_indices_byte_offset = si["byteOffset"]; } - ERR_FAIL_COND_V(!d.has("values"), ERR_PARSE_ERROR); - const Dictionary &sv = d["values"]; + ERR_FAIL_COND_V(!s.has("values"), ERR_PARSE_ERROR); + const Dictionary &sv = s["values"]; ERR_FAIL_COND_V(!sv.has("bufferView"), ERR_PARSE_ERROR); accessor.sparse_values_buffer_view = sv["bufferView"]; |