Clean up blend shape support in GLES2 and GLES3.

This commit is contained in:
Juan Linietsky
2019-03-01 16:01:21 -03:00
parent e47915f7cd
commit 3f681b0681
6 changed files with 48 additions and 15 deletions

View File

@ -892,9 +892,11 @@ Error EditorSceneImporterGLTF::_parse_meshes(GLTFState &state) {
primitive = primitives2[mode];
}
ERR_FAIL_COND_V(!a.has("POSITION"), ERR_PARSE_ERROR);
if (a.has("POSITION")) {
array[Mesh::ARRAY_VERTEX] = _decode_accessor_as_vec3(state, a["POSITION"], true);
}
if (a.has("NORMAL")) {
array[Mesh::ARRAY_NORMAL] = _decode_accessor_as_vec3(state, a["NORMAL"], true);
}