mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Bugfix in GLTF import: Flipping boolean check. Reindexing should _NOT_ happen when blend shapes are present.
This commit is contained in:
parent
6c9ccf18f8
commit
c2e91005ef
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user