Skip to content

Commit

Permalink
Fix CameraNode destroy order. Thanks @perunvolodymyr and @Denis-Makov…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed May 13, 2024
1 parent c173e0a commit f3036db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ open class CameraNode(engine: Engine, entity: Entity) : Node(engine, entity), Ca
}

override fun destroy() {
super.destroy()

engine.safeDestroyCamera(camera)

super.destroy()
}

internal fun setView(view: View) {
Expand Down

0 comments on commit f3036db

Please sign in to comment.