chore: animation literal
This commit is contained in:
parent
9e6df804ce
commit
e60742b510
|
@ -48,6 +48,10 @@ export default class Animated extends decorate(Trait) {
|
||||||
currentAnimation: {
|
currentAnimation: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
label: 'Current animation',
|
label: 'Current animation',
|
||||||
|
options: (entity) => (
|
||||||
|
Object.keys(entity.traitInstance('animated').params.animations)
|
||||||
|
.reduce((r, key) => ({...r, [key]: key}), {})
|
||||||
|
),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user