Skip to content

Commit

Permalink
Fix potential error in textbubble script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Jun 25, 2024
1 parent be2908b commit 431edeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func add_choice_container(node:Container, alignment:=FlowContainer.ALIGNMENT_BEG


func get_speaker_canvas_position() -> Vector2:
if node_to_point_at:
if is_instance_valid(node_to_point_at):
if node_to_point_at is Node3D:
base_position = get_viewport().get_camera_3d().unproject_position(
(node_to_point_at as Node3D).global_position)
Expand Down

0 comments on commit 431edeb

Please sign in to comment.