Skip to content

Commit

Permalink
fix: init EntrySprite.visible
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 4, 2023
1 parent ad5838b commit ab26bfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EntrySprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class EntrySprite extends Sprite {
}
sprite.angle = entity.rotation
sprite.direction = entity.direction
sprite.visible = entity.visible
sprite.scene = scene
project.scenes[sprite.scene].addChildAt(sprite, 0)
return sprite
Expand All @@ -61,6 +62,7 @@ export class EntrySprite extends Sprite {
sprite.scale = this.scale
sprite.angle = this.angle
sprite.direction = this.direction
sprite.visible = this.visible
sprite.scene = this.scene

sprite.isClone = true
Expand Down

0 comments on commit ab26bfe

Please sign in to comment.