Skip to content

Commit

Permalink
Fixed issue with missing assign_pcam_host function (#130)
Browse files Browse the repository at this point in the history
Caused a crash if the Camera2D was positioned below a PCam2D in the scene hierachy.
  • Loading branch information
ramokz authored Oct 31, 2023
1 parent 981c950 commit d2e03d9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ func _interpolate_position(position: Vector2, delta: float, target: Node2D = sel
##################
# Public Functions
##################
## Assigns the PhantomCamera2D to a new PhantomCameraHost.
func assign_pcam_host() -> void:
Properties.assign_pcam_host(self)
## Gets the current PhantomCameraHost this PhantomCamera2D is assigned to.
func get_pcam_host_owner() -> PhantomCameraHost:
return Properties.pcam_host_owner
Expand Down

0 comments on commit d2e03d9

Please sign in to comment.