fix: Cap
This commit is contained in:
parent
7ddeea6efb
commit
440afac5e3
|
@ -173,13 +173,7 @@ export default () => class Visible extends decorate(Trait) {
|
|||
this.#container.rotation = this.entity.rotation;
|
||||
},
|
||||
|
||||
traitAdded: (type) => {
|
||||
if (-1 === [
|
||||
'visible',
|
||||
'positioned',
|
||||
].indexOf(type)) {
|
||||
return;
|
||||
}
|
||||
traitAdded: () => {
|
||||
this.synchronizePosition();
|
||||
},
|
||||
|
||||
|
@ -261,7 +255,7 @@ export default () => class Visible extends decorate(Trait) {
|
|||
}
|
||||
|
||||
synchronizePosition() {
|
||||
if (!this.entity.is('positioned')) {
|
||||
if (!this.entity.is('Positioned')) {
|
||||
return;
|
||||
}
|
||||
if (!this.#container) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user