imgui-node-editor icon indicating copy to clipboard operation
imgui-node-editor copied to clipboard

Object containers in the EditorContext are not properly cleaned up

Open shamilatesoglu opened this issue 3 years ago • 0 comments

The object containers m_Nodes, m_Pins, m_Links inside EditorContext are not properly cleaned after a node or link is deleted. As long as the same EditorContext is used, these containers continue to inflate. So when a node is deleted, if a same ID is used to create another node, the FindNode function returns the previous node object with the settings of the previous node. In groups, for example, this problem causes it to have the previous group's size when a new group with the same ID is created (after the first one is deleted).

shamilatesoglu avatar Aug 01 '22 09:08 shamilatesoglu