fix: animation resourcing
This commit is contained in:
parent
7bc14df7b8
commit
eb3608cf6f
|
@ -62,6 +62,7 @@ export default () => class Animation extends decorate(JsonResource) {
|
|||
}
|
||||
const keys = [
|
||||
'directionCount',
|
||||
'direction',
|
||||
'frameCount',
|
||||
'frameSize',
|
||||
'imageUri',
|
||||
|
@ -98,4 +99,15 @@ export default () => class Animation extends decorate(JsonResource) {
|
|||
return rectangle;
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return {
|
||||
direction: this.direction,
|
||||
directionCount: this.directionCount,
|
||||
frameCount: this.frameCount,
|
||||
frameRate: this.frameRate,
|
||||
frameSize: this.frameSize,
|
||||
imageUri: this.imageUri,
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user