summaryrefslogtreecommitdiffstats
path: root/AssetLoader/src/GLTFLoader.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-28 02:37:14 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-28 02:37:14 +0000
commite8c6fce289b22818e76af22cb4131c015280c3d2 (patch)
tree9cb1cadbdd67e97997be521bce2fc43c6a445bd7 /AssetLoader/src/GLTFLoader.cpp
parentMinor update to GLTF loader (diff)
downloadDiligentTools-e8c6fce289b22818e76af22cb4131c015280c3d2.tar.gz
DiligentTools-e8c6fce289b22818e76af22cb4131c015280c3d2.zip
Minor update to GLTF loader
Diffstat (limited to 'AssetLoader/src/GLTFLoader.cpp')
-rw-r--r--AssetLoader/src/GLTFLoader.cpp8
1 files changed, 4 insertions, 4 deletions
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();
}
}
}