mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-26 09:20:51 +01:00
Fix effect mapping
This commit is contained in:
parent
66cfa1a32b
commit
c3f894b231
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user