Instanced LinesMesh disappears when zooming out from original points

I think this is a bug.

Just press the “Zoom In/Out” button and the teal line will disappear and reappear.
The teal line is created twice, the first is a typical call to CreateLinesMesh, but the second uses the “instance” option with an updated set of points.

(Note that the button may not zoom in enough, depending on your screen resolution, so just zoom in with the mouse wheel to get it to happen)

The LinesMesh doesn’t update it’s BoundingInfo when updated.

Workaround is:
lineMeshBad.refreshBoundingInfo()

This fixes the bug:

3 Likes

Thank you @roland

1 Like