From d4849317c9eb674923441483cb286a59661d557d Mon Sep 17 00:00:00 2001 From: Bai Miao <68489543+ChrisCatCP@users.noreply.github.com> Date: Thu, 29 Aug 2024 16:37:34 +0800 Subject: [PATCH] fix particleEmitter2.PriorityPlane miss --- mdl/generate.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/mdl/generate.ts b/mdl/generate.ts index 8da483e..fb502b1 100644 --- a/mdl/generate.ts +++ b/mdl/generate.ts @@ -744,6 +744,7 @@ function generateParticleEmitter2Chunk (particleEmitter2: ParticleEmitter2) { generateIntPropIfNotEmpty('Time', particleEmitter2.Time, 0) + generateIntPropIfNotEmpty('LifeSpan', particleEmitter2.LifeSpan, 0) + generateIntPropIfNotEmpty('TailLength', particleEmitter2.TailLength, 0) + + generateIntPropIfNotEmpty('PriorityPlane', particleEmitter2.PriorityPlane, 0) + (particleEmitter2.Flags & ParticleEmitter2Flags.SortPrimsFarZ ? generateBooleanProp('SortPrimsFarZ') : '') + (particleEmitter2.Flags & ParticleEmitter2Flags.LineEmitter ? generateBooleanProp('LineEmitter') : '') + (particleEmitter2.Flags & ParticleEmitter2Flags.ModelSpace ? generateBooleanProp('ModelSpace') : '') +