Minor fixes

This commit is contained in:
Wojtek Figat
2024-12-16 20:07:53 +01:00
parent 59b4755379
commit d1ac9cd2bc
4 changed files with 13 additions and 14 deletions

View File

@@ -127,7 +127,7 @@ void MeshDeformation::RunDeformers(const MeshBase* mesh, MeshBufferType type, GP
}
if (!deformation)
{
deformation = New<MeshDeformationData>(key, type, vertexStride);
deformation = New<MeshDeformationData>(key, type, vertexStride, vertexBuffer->GetVertexLayout());
deformation->VertexBuffer.Data.Resize(vertexBuffer->GetSize());
deformation->Bounds = mesh->GetBox();
_deformations.Add(deformation);