AB4D Forum
LineWithTextVisual3D does not clear Children when UseTextBlockVisual3D is True - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9)
+--- Thread: LineWithTextVisual3D does not clear Children when UseTextBlockVisual3D is True (/showthread.php?tid=4254)



LineWithTextVisual3D does not clear Children when UseTextBlockVisual3D is True - id0001 - 03-31-2021

I was trying to update the StartPosition and Endposition of a LineWithTextVisual3D and noticed that both the line and text get copied every update. 
I then took a look at the source code with DotPeek to see what was happening and saw that 2 visuals are added to the Children collection every time CreateModel is called, but this collection is never cleared except when UseTextBlockVisual3D is False.


RE: LineWithTextVisual3D does not clear Children when UseTextBlockVisual3D is True - abenedik - 03-31-2021

I can confirm that this is a bug that was introduced in the previous version of Ab3d.PowerToys when the UseTextBlockVisual3D property was added to the LineWithTextVisual3D.

The fix for this bug will be available with a new version that will be released this week.