diff options
author | Joseph Catrambone <jo.jcat@gmail.com> | 2019-07-27 14:34:54 -0700 |
---|---|---|
committer | Joseph Catrambone <jo.jcat@gmail.com> | 2019-07-27 14:34:54 -0700 |
commit | c2e91005ef7abcbc4b0d4339a398572467b082ee (patch) | |
tree | 798c262fd5d213b29e75380db4e798faa3412c60 | |
parent | 6c9ccf18f87a662e1994c870088a6beaaeeb0384 (diff) |
Bugfix in GLTF import: Flipping boolean check. Reindexing should _NOT_ happen when blend shapes are present.
-rw-r--r-- | editor/import/editor_scene_importer_gltf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SurfaceTool> 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(); |