# Submeshes disappear after merge meshes and markVerticesDataAsUpdatable

**URL:** <https://forum.babylonjs.com/t/submeshes-disappear-after-merge-meshes-and-markverticesdataasupdatable/9396>\
**Category:** Questions\
**Created:** [March 23, 2020, 12:10pm UTC](https://forum.babylonjs.com/t/submeshes-disappear-after-merge-meshes-and-markverticesdataasupdatable/9396 "2020-03-23T12:10:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danim](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Danim](https://forum.babylonjs.com/u/Danim)\
**Post date:** [March 23, 2020, 12:10pm UTC](https://forum.babylonjs.com/t/submeshes-disappear-after-merge-meshes-and-markverticesdataasupdatable/9396/1 "2020-03-23T12:10:02Z")

</div>

Hi,  
I’m trying to create a merged mesh with a few individual meshes and I’d like to keep these individual meshes as submeshes of the new merged one.  
It works correctly, but as soon as I set markVerticesDataAsUpdatable(BABYLON.VertexBuffer.PositionKind) to the merged mesh, the submeshes are cleared.  
Here I’ve set up a simple playground:  
[https://playground.babylonjs.com/#D5KWS4](https://playground.babylonjs.com/#D5KWS4)

In the console you can see how the submeshes are removed after marking the vertices as updatable (I need to manipulate vertices positions after the merging process).

Is there any way to set the vertices as updatable without loosing the submeshes?

Thanks!

---

<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:** [March 23, 2020, 1:48pm UTC](https://forum.babylonjs.com/t/submeshes-disappear-after-merge-meshes-and-markverticesdataasupdatable/9396/2 "2020-03-23T13:48:14Z")

</div>

It’s a bug, it will be fixed by:

> <https://github.com/BabylonJS/Babylon.js/pull/7889>

---

<div class="post-metadata">

**Author:** ![Danim](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Danim](https://forum.babylonjs.com/u/Danim)\
**Post date:** [March 23, 2020, 2:07pm UTC](https://forum.babylonjs.com/t/submeshes-disappear-after-merge-meshes-and-markverticesdataasupdatable/9396/3 "2020-03-23T14:07:18Z")

</div>

Thanks @Evgeni_Popov for taking a look at this and submitting the proposed fix.
