diff --git a/src/render/render.cpp b/src/render/render.cpp index 6970e14..311320e 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -1620,8 +1620,11 @@ if (camera.updated) { updateUniformBuffers(); } - if(!paused) + if (!paused && glTFModel.animations.size() > 0) + { glTFModel.updateAnimation(frameTimer, shaderData.skinSSBO); + } + } void VulkanExample::viewChanged() @@ -1659,7 +1662,8 @@ GUIFunction guiFunc{}; std::string strModelFilePath; strModelFilePath = guiFunc.openFileFolderDialog(); - std::cout << strModelFilePath << std::endl; + filePath.glTFModelFilePath = strModelFilePath; + loadAssets(); } } }