fix: assertion 'ps->array_size()' in UpdateMesh() when using trails of type ribbon

close #241
pull/289/head
mob-sakai 2023-08-14 16:15:17 +09:00
parent fb31db47f2
commit f75fcce0da
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ namespace Coffee.UIExtensions
// Bake mesh. // Bake mesh.
Profiler.BeginSample("[UIParticleRenderer] Bake Mesh"); Profiler.BeginSample("[UIParticleRenderer] Bake Mesh");
if (_isTrail && _parent.canSimulate) if (_isTrail && _parent.canSimulate && 0 < s_CombineInstances[0].mesh.vertexCount)
{ {
_renderer.BakeTrailsMesh(s_CombineInstances[0].mesh, bakeCamera, true); _renderer.BakeTrailsMesh(s_CombineInstances[0].mesh, bakeCamera, true);
} }