From e5e1d5c3b22b155aa57f77eaf8cca91ecbe29d8e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 27 Apr 2019 15:37:13 -0700 Subject: Minor update to GLTF loader --- AssetLoader/src/GLTFLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AssetLoader/src/GLTFLoader.cpp') diff --git a/AssetLoader/src/GLTFLoader.cpp b/AssetLoader/src/GLTFLoader.cpp index 893be19..c632e82 100644 --- a/AssetLoader/src/GLTFLoader.cpp +++ b/AssetLoader/src/GLTFLoader.cpp @@ -120,7 +120,7 @@ void Mesh::SetBoundingBox(const float3& min, const float3& max) float4x4 Node::LocalMatrix()const { - return float4x4::TranslationGL(Translation) * QuaternionToMatrix(Rotation) * float4x4::Scale(Scale) * Matrix; + return float4x4::TranslationGL(Translation) * Rotation.ToMatrix() * float4x4::Scale(Scale) * Matrix; } float4x4 Node::GetMatrix()const -- cgit v1.2.3