fix: fix abnormal mesh bounds error

close #213
This commit is contained in:
wmltogether
2024-01-24 14:44:59 +08:00
committed by mob-sakai
parent 93d3919b6f
commit 772bf50d16
2 changed files with 24 additions and 0 deletions

View File

@@ -339,6 +339,7 @@ namespace Coffee.UIExtensions
}
else if (_renderer.CanBakeMesh())
{
_particleSystem.ValidateShape();
#if PS_BAKE_API_V2
_renderer.BakeMesh(s_CombineInstances[0].mesh, bakeCamera,
ParticleSystemBakeMeshOptions.BakeRotationAndScale);