Skip to content

Commit

Permalink
Fixed issue when deleting gui spine bones
Browse files Browse the repository at this point in the history
  • Loading branch information
JCash committed Feb 24, 2022
1 parent 5f5ec50 commit 4251b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defold-spine/src/gui_node_spine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4251b43

Please sign in to comment.