REVIEWED: Model scale #1700
This commit is contained in:
parent
c2c141f941
commit
7b37caa96c
1 changed files with 1 additions and 1 deletions
|
@ -4330,7 +4330,7 @@ static void InitGLTFBones(Model* model, const cgltf_data* data)
|
||||||
currentTransform->rotation = QuaternionMultiply(parentTransform->rotation, currentTransform->rotation);
|
currentTransform->rotation = QuaternionMultiply(parentTransform->rotation, currentTransform->rotation);
|
||||||
currentTransform->translation = Vector3RotateByQuaternion(currentTransform->translation, parentTransform->rotation);
|
currentTransform->translation = Vector3RotateByQuaternion(currentTransform->translation, parentTransform->rotation);
|
||||||
currentTransform->translation = Vector3Add(currentTransform->translation, parentTransform->translation);
|
currentTransform->translation = Vector3Add(currentTransform->translation, parentTransform->translation);
|
||||||
currentTransform->scale = Vector3Multiply(parentTransform->scale, parentTransform->scale);
|
currentTransform->scale = Vector3Multiply(currentTransform->scale, parentTransform->scale);
|
||||||
completedBones[i] = true;
|
completedBones[i] = true;
|
||||||
numberCompletedBones++;
|
numberCompletedBones++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue