Updatable mesh and increaseVertices

Seems like a bug. If use increaseVertices with mesh that have been updatable: true on create - object disapears

here is a demo
https://playground.babylonjs.com/#4NZKIR

I removed “updatable:true” and now it works - https://playground.babylonjs.com/#4NZKIR#1

currentry I use it like this

const mesh = MeshBuilder.CreateBox('box', { size: 5 }, scene);
mesh.increaseVertices(20);
mesh.markVerticesDataAsUpdatable(VertexBuffer.PositionKind, true);
mesh.markVerticesDataAsUpdatable(VertexBuffer.NormalKind, true);

to have ability to morph it later. But it’s not cool :slight_smile:

This PR will fix the problem of using increaseVertices with updatable buffers:

4 Likes

Thank you!