Merge pull request #48363 from aaronfranke/tan

Fix some tangent Color typos in GLTF
This commit is contained in:
Rémi Verschelde 2021-05-02 10:08:22 +02:00 committed by GitHub
commit 8abd50359b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2389,9 +2389,9 @@ Error GLTFDocument::_serialize_meshes(Ref<GLTFState> state) {
for (int i = 0; i < ret_size; i++) { for (int i = 0; i < ret_size; i++) {
Color tangent; Color tangent;
tangent.r = tarr[(i * 4) + 0]; tangent.r = tarr[(i * 4) + 0];
tangent.r = tarr[(i * 4) + 1]; tangent.g = tarr[(i * 4) + 1];
tangent.r = tarr[(i * 4) + 2]; tangent.b = tarr[(i * 4) + 2];
tangent.r = tarr[(i * 4) + 3]; tangent.a = tarr[(i * 4) + 3];
} }
t["TANGENT"] = _encode_accessor_as_color(state, attribs, true); t["TANGENT"] = _encode_accessor_as_color(state, attribs, true);
} }