colorShader kept and not reused after serialization of LinesMesh

OS: Windows 10 x64
Browser: ungoogled-chromium 108.0.5359.95
Babylon.js: 5.39.0
Playground: https://playground.babylonjs.com/#E9EBSL#3

Open the inspector and expend the materials.

Expected:
The colorShader material should be excluded from serialization or reused after load.
Referring to BABYLON.ShaderMaterial#doNotSerialize

Actual:
The colorShader is serialized and loaded, and never reused again.

Similar:

Fixed in the same PR than:

3 Likes