From c3f894b2314f6d1d21f2b72bc24fe8bea51e64e6 Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 20 Feb 2021 17:31:47 -0500 Subject: [PATCH] Fix effect mapping --- src/mapping/mappers/asset/AnimationMapper.ts | 2 ++ src/mapping/xml/asset/animation/EffectAnimationXML.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mapping/mappers/asset/AnimationMapper.ts b/src/mapping/mappers/asset/AnimationMapper.ts index 32383e2..89faddb 100644 --- a/src/mapping/mappers/asset/AnimationMapper.ts +++ b/src/mapping/mappers/asset/AnimationMapper.ts @@ -215,6 +215,8 @@ export class AnimationMapper extends Mapper { const frame: IAssetAnimationFrame = {}; + if(frameXML.repeats !== undefined) frame.repeats = frameXML.repeats; + if(frameXML.fxs !== undefined) { if(frameXML.fxs.length) diff --git a/src/mapping/xml/asset/animation/EffectAnimationXML.ts b/src/mapping/xml/asset/animation/EffectAnimationXML.ts index 3dee7e9..c169620 100644 --- a/src/mapping/xml/asset/animation/EffectAnimationXML.ts +++ b/src/mapping/xml/asset/animation/EffectAnimationXML.ts @@ -30,7 +30,7 @@ export class EffectAnimationXML { if(attributes.name !== undefined) this._name = attributes.name; if(attributes.desc !== undefined) this._desc = attributes.desc; - if(attributes.resetOnToggle !== undefined) this._resetOnToggle = (attributes.resetOnToggle === '1'); + if(attributes.resetOnToggle !== undefined) this._resetOnToggle = (attributes.resetOnToggle === 'true'); } if(xml.direction !== undefined)