Increasing number of points in GreasedLineMesh gives WebGL warning

GreasedLineMesh produces a warning from WebGL about buffer overflow when increasing the number of points with setPoints(). In my own project, it seems to still visualize the new points, but the new lines don’t appear in this repro.

Exchange definitions of line1 and line2 and now warning appears.

Tag @roland

1 Like

cc @roland

You might have overlooked this sentence :wink:


debugMesh.setPoints(line2, { updatable: true }) // { updatable: true } not needed here

2 Likes

I definitely missed the word “prior”. Thank you!

1 Like