From e8c6fce289b22818e76af22cb4131c015280c3d2 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 27 Apr 2019 19:37:14 -0700 Subject: Minor update to GLTF loader --- AssetLoader/src/GLTFLoader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'AssetLoader/src/GLTFLoader.cpp') diff --git a/AssetLoader/src/GLTFLoader.cpp b/AssetLoader/src/GLTFLoader.cpp index c632e82..b32fec1 100644 --- a/AssetLoader/src/GLTFLoader.cpp +++ b/AssetLoader/src/GLTFLoader.cpp @@ -135,7 +135,7 @@ float4x4 Node::GetMatrix()const return mat; } -void Node::Update(IDeviceContext* pCtx) +void Node::Update() { if (Mesh) { @@ -157,7 +157,7 @@ void Node::Update(IDeviceContext* pCtx) } for (auto& child : Children) { - child->Update(pCtx); + child->Update(); } } @@ -1016,7 +1016,7 @@ void Model::LoadFromFile(IRenderDevice* pDevice, IDeviceContext* pContext, const // Initial pose if (node->Mesh) { - node->Update(pContext); + node->Update(); } } @@ -1210,7 +1210,7 @@ void Model::UpdateAnimation(IDeviceContext* pContext, Uint32 index, float time) { for (auto& node : Nodes) { - node->Update(pContext); + node->Update(); } } } -- cgit v1.2.3