From ca8bbd354264f6dd8ae3e6e0d629e6dcbfccc3ed Mon Sep 17 00:00:00 2001 From: devZoGok Date: Wed, 23 Mar 2022 19:29:12 +0200 Subject: [PATCH] quick change --- skeletalAnimationSample.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skeletalAnimationSample.cpp b/skeletalAnimationSample.cpp index 03804d0..2278574 100644 --- a/skeletalAnimationSample.cpp +++ b/skeletalAnimationSample.cpp @@ -46,9 +46,9 @@ int main(){ cam->setPosition(Vector3(0, 0.25, 1) * 20); cam->lookAt(Vector3(0, 0, -1).norm(), Vector3(0, 1, 0).norm()); - AssetManager::getSingleton()->load(MODEL_PATH + "kek.xml"); - - Model *model = new Model(MODEL_PATH + "kek.xml"); + string modelPath = MODEL_PATH + "kek.xml"; + AssetManager::getSingleton()->load(modelPath); + Model *model = new Model(modelPath); Material *mat = new Material(PATH + "texture"); string images[] = {TEX_PATH + "defaultTexture.jpg"};