fix for use in engine / cli with no api.event
This commit is contained in:
parent
4e8bb6b7ea
commit
336ce53dd3
1 changed files with 4 additions and 1 deletions
|
|
@ -493,9 +493,12 @@ class Widget {
|
||||||
}
|
}
|
||||||
if (x || y || z) {
|
if (x || y || z) {
|
||||||
this.setModified();
|
this.setModified();
|
||||||
|
// allow for use in engine / cli
|
||||||
|
if (api && api.event) {
|
||||||
api.event.emit('widget.move', {widget: this, pos});
|
api.event.emit('widget.move', {widget: this, pos});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scale(x, y, z) {
|
scale(x, y, z) {
|
||||||
this.group.forEach(w => {
|
this.group.forEach(w => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue