Merge pull request #30877 from JosephCatrambone/master

Bugfix GLTF import: Do not reindex when blend shapes are present.
This commit is contained in:
Rémi Verschelde 2019-07-29 09:56:25 +02:00 committed by GitHub
commit 5ad1abed47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();