Skip to content

Commit

Permalink
Background: Add safety check for parent block
Browse files Browse the repository at this point in the history
Mainly to test the background in isolation in a new Control scene.
  • Loading branch information
manuq committed Dec 5, 2024
1 parent 9c0e672 commit a6f753f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func _ready():


func _get_border_color() -> Color:
if parent_block.has_focus():
if parent_block and parent_block.has_focus():
return Constants.FOCUS_BORDER_COLOR
return outline_color

Expand Down

0 comments on commit a6f753f

Please sign in to comment.