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;