From f75fcce0dae0bc166bd01d36a150aded1fd721f3 Mon Sep 17 00:00:00 2001 From: mob-sakai Date: Mon, 14 Aug 2023 16:15:17 +0900 Subject: [PATCH] fix: assertion 'ps->array_size()' in UpdateMesh() when using trails of type ribbon close #241 --- Scripts/UIParticleRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/UIParticleRenderer.cs b/Scripts/UIParticleRenderer.cs index ea2fa76..1d19774 100644 --- a/Scripts/UIParticleRenderer.cs +++ b/Scripts/UIParticleRenderer.cs @@ -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); }