# colorShader kept and not reused after serialization of LinesMesh

**URL:** <https://forum.babylonjs.com/t/colorshader-kept-and-not-reused-after-serialization-of-linesmesh/36871>\
**Category:** Bugs\
**Tags:** material, sceneserializer, serialization, serializer\
**Created:** [December 26, 2022, 2:34am UTC](https://forum.babylonjs.com/t/colorshader-kept-and-not-reused-after-serialization-of-linesmesh/36871 "2022-12-26T02:34:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 26, 2022, 10:36am UTC](https://forum.babylonjs.com/t/colorshader-kept-and-not-reused-after-serialization-of-linesmesh/36871/2 "2022-12-26T10:36:41Z")

</div>

Fixed in the same PR than:

> [@colorShader and colorShaderOccQuery kept after serialize](https://forum.babylonjs.com/t/colorshader-and-colorshaderoccquery-kept-after-serialize/36870/2):
>
> The two shaders used by the bounding box renderer are not flagged as doNotSerialize. If you don’t want to serialize them, you can set doNotSerialize=true: [EDIT] You’re right, though, that we should not serialize them in the first place, so here’s the PR:

---

_[View the full topic](https://forum.babylonjs.com/t/colorshader-kept-and-not-reused-after-serialization-of-linesmesh/36871)._
