From b7aca7a89382c4e2d604def03137bcd3062eb341 Mon Sep 17 00:00:00 2001 From: Benualdo Date: Tue, 7 Jan 2025 22:22:55 +0100 Subject: [PATCH] Fix bone index used instead of node index in skeleton debug display mode --- src/renderer/Instance/Mesh/MeshInstance.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/Instance/Mesh/MeshInstance.hpp b/src/renderer/Instance/Mesh/MeshInstance.hpp index 6b8cdbf0..e4921c97 100644 --- a/src/renderer/Instance/Mesh/MeshInstance.hpp +++ b/src/renderer/Instance/Mesh/MeshInstance.hpp @@ -943,7 +943,7 @@ namespace vg::renderer float3 boxSize = float3(0.01f, 0.01f, 0.01f); - if (skeleton->IsNodeSelected(j)) + if (skeleton->IsNodeSelected(index)) { color |= 0xCFCFCFCF; boxSize *= 1.5f;