Merge pull request #65611 from Sarfraz-droid/Issue65602
This commit is contained in:
commit
fc61fa3baa
|
@ -2673,7 +2673,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> state) {
|
|||
} else if (a.has("JOINTS_0") && a.has("JOINTS_1")) {
|
||||
PackedInt32Array joints_0 = _decode_accessor_as_ints(state, a["JOINTS_0"], true);
|
||||
PackedInt32Array joints_1 = _decode_accessor_as_ints(state, a["JOINTS_1"], true);
|
||||
ERR_FAIL_COND_V(joints_0.size() != joints_0.size(), ERR_INVALID_DATA);
|
||||
ERR_FAIL_COND_V(joints_0.size() != joints_1.size(), ERR_INVALID_DATA);
|
||||
int32_t weight_8_count = JOINT_GROUP_SIZE * 2;
|
||||
Vector<int> joints;
|
||||
joints.resize(vertex_num * weight_8_count);
|
||||
|
|
Loading…
Reference in New Issue