Cannot delete ModelVisual3D's

Topics: User Forum
Feb 2, 2009 at 1:17 PM
Edited Feb 2, 2009 at 1:26 PM
I'm having an issue with deleting screensplashlines from my viewports.
I'm just using Children.Remove(Lines), and the next thing that happens is mathutils comes up with a nullreference in TryWorldToCameraTransform due to the incoming Viewport3DVisual being null (of course).
I've tried working around the problem by removing all points in the screenplashline before deletion, and even modifying the 3dtools code to handle an incoming null reference in TryWorldToCameraTransform, however it still gets messed up.

Any help is highly appreciated :-)

Btw. I should mention that I've already tried using the IDisposable patches and even making my own, but no luck.