UI: Fix bug where transition refs would not release
When clicking the transition properties button and creating the context menu with properties/rename, it would create actions that also included a source reference, but the parent of those actions was the main window instead of the menu, so those actions would stay created until the main window was destroyed. This would cause bugs with saving/loading scenes where children of that transition would also be perpetually referenced. So instead of using the main window, just use a pointer to the menu itself as the parent so that when the menu is destroyed, the actions are also destroyed, and the source refs released.
Showing
想要评论请 注册 或 登录