Fix effect mapping

This commit is contained in:
Bill 2021-02-20 17:31:47 -05:00
parent 66cfa1a32b
commit c3f894b231
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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)