From c2e91005ef7abcbc4b0d4339a398572467b082ee Mon Sep 17 00:00:00 2001 From: Joseph Catrambone Date: Sat, 27 Jul 2019 14:34:54 -0700 Subject: Bugfix in GLTF import: Flipping boolean check. Reindexing should _NOT_ happen when blend shapes are present. --- editor/import/editor_scene_importer_gltf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index 8246e74814..c9c5b3818f 100644 --- a/editor/import/editor_scene_importer_gltf.cpp +++ b/editor/import/editor_scene_importer_gltf.cpp @@ -986,7 +986,7 @@ Error EditorSceneImporterGLTF::_parse_meshes(GLTFState &state) { Ref st; st.instance(); st->create_from_triangle_arrays(array); - if (p.has("targets")) { + if (!p.has("targets")) { //morph targets should not be reindexed, as array size might differ //removing indices is the best bet here st->deindex(); -- cgit v1.2.3