From d5cc9234139097a90abdc6ee89d9ef0cd180aa52 Mon Sep 17 00:00:00 2001 From: Xiao Qi Date: Tue, 27 Sep 2022 22:37:49 +0800 Subject: [PATCH] Hard coded to always load racoon mesh instead of bag --- SHADE_Application/src/Scenes/SBTestScene.cpp | 21 +++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/SHADE_Application/src/Scenes/SBTestScene.cpp b/SHADE_Application/src/Scenes/SBTestScene.cpp index a18b4894..0f42b419 100644 --- a/SHADE_Application/src/Scenes/SBTestScene.cpp +++ b/SHADE_Application/src/Scenes/SBTestScene.cpp @@ -42,15 +42,18 @@ namespace Sandbox std::vector> handles; for (auto const& mesh : meshes) { - handles.push_back(graphicsSystem->AddMesh( - mesh.header.vertexCount, - mesh.vertexPosition.data(), - mesh.texCoords.data(), - mesh.vertexTangent.data(), - mesh.vertexNormal.data(), - mesh.header.indexCount, - mesh.indices.data() - )); + if (mesh.meshName == "Cube.012") + { + handles.push_back(graphicsSystem->AddMesh( + mesh.header.vertexCount, + mesh.vertexPosition.data(), + mesh.texCoords.data(), + mesh.vertexTangent.data(), + mesh.vertexNormal.data(), + mesh.header.indexCount, + mesh.indices.data() + )); + } } graphicsSystem->BuildMeshBuffers();