瀏覽代碼

Bugfix in GLTF import: Flipping boolean check. Reindexing should _NOT_ happen when blend shapes are present.

Joseph Catrambone 6 年之前
父節點
當前提交
c2e91005ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();