REVIEWED: Model scale #1700

This commit is contained in:
raysan5 2021-04-05 13:47:52 +02:00
parent c2c141f941
commit 7b37caa96c

View file

@ -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++;
} }