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)