fix: initial container

This commit is contained in:
cha0s 2021-04-19 14:24:33 -05:00
parent ae27a217ee
commit b6d6dc4766

View File

@ -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);
},