fix: initial container
This commit is contained in:
parent
ae27a217ee
commit
b6d6dc4766
|
@ -72,6 +72,11 @@ export default () => class Rastered extends Trait {
|
|||
},
|
||||
|
||||
traitAdded: () => {
|
||||
if (this.#container) {
|
||||
this.#container.alpha = this.entity.opacity;
|
||||
this.#container.rotation = this.entity.rotation;
|
||||
this.#container.scale = this.entity.visibleScale;
|
||||
}
|
||||
this.synchronizePosition();
|
||||
this.onZIndexChanged(this.entity.zIndex);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user