Explorar o código

Merge pull request #30877 from JosephCatrambone/master

Bugfix GLTF import: Do not reindex when blend shapes are present.
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
5ad1abed47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/import/editor_scene_importer_gltf.cpp

+ 1 - 1
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();