소스 검색

REVIEWED: Model scale #1700

raysan5 4 년 전
부모
커밋
7b37caa96c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/models.c

+ 1 - 1
src/models.c

@@ -4330,7 +4330,7 @@ static void InitGLTFBones(Model* model, const cgltf_data* data)
                 currentTransform->rotation = QuaternionMultiply(parentTransform->rotation, currentTransform->rotation);
                 currentTransform->translation = Vector3RotateByQuaternion(currentTransform->translation, parentTransform->rotation);
                 currentTransform->translation = Vector3Add(currentTransform->translation, parentTransform->translation);
-                currentTransform->scale = Vector3Multiply(parentTransform->scale, parentTransform->scale);
+                currentTransform->scale = Vector3Multiply(currentTransform->scale, parentTransform->scale);
                 completedBones[i] = true;
                 numberCompletedBones++;
             }