fix: assertion 'ps->array_size()' in UpdateMesh() when using trails of type ribbon
close #241pull/289/head
parent
fb31db47f2
commit
f75fcce0da
|
@ -278,7 +278,7 @@ namespace Coffee.UIExtensions
|
|||
|
||||
// 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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue