From 4251b43676758c9dd4d03572081ada1e3aa17036 Mon Sep 17 00:00:00 2001 From: JCash Date: Thu, 24 Feb 2022 09:12:11 +0100 Subject: [PATCH] Fixed issue when deleting gui spine bones --- defold-spine/src/gui_node_spine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defold-spine/src/gui_node_spine.cpp b/defold-spine/src/gui_node_spine.cpp index 5d06dce..20b300e 100644 --- a/defold-spine/src/gui_node_spine.cpp +++ b/defold-spine/src/gui_node_spine.cpp @@ -427,7 +427,7 @@ static void DeleteBones(InternalGuiNode* node) uint32_t count = node->m_BonesNodes.Size(); for (uint32_t i = 0; i < count; ++i) { - dmGui::DeleteNode(node->m_GuiScene, node->m_GuiNode); + dmGui::DeleteNode(node->m_GuiScene, node->m_BonesNodes[i]); } node->m_BonesNodes.SetSize(0); node->m_BonesIds.SetSize(0);