God... I feel really dumb.
I'm working on porting Radial Menu to the current GUI version so I can actually update it, and ran into a crash that also happens in GUI Builder.
I knew that it was because the script was running out of graphics buffers internally, but it confused me because there's always been code to specifically free them up as elements are deleted.
...or at least, it would have been doing that if that code was being run. One little typo, not even enough to cause problems on its own, was allowing the GUI to happily skip right over that logic.
TL;DR Small update, should fix issues with scripts crashing if they create/delete too many elements. The GUI will now also explicitly tell you (in the crash report) if it fails because there weren't any more buffers.
|