GreasedLine materialType 2 not working after dispose

Repro: https://playground.babylonjs.com/#H1LRZ3#801

If you create a greased line using materialType:2, then dispose(false,true) and create again, the greased line is no longer visible. Works fine for other material types. wai?

Thanks for reporting, it’s a bug. Here’s the fix:

4 Likes

Tested in v9.3.1. Working now, thks!