Skip to content

Commit a6f753f

Browse files
committed
Background: Add safety check for parent block
Mainly to test the background in isolation in a new Control scene.
1 parent 9c0e672 commit a6f753f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/block_code/ui/blocks/utilities/background/background.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func _ready():
5656

5757

5858
func _get_border_color() -> Color:
59-
if parent_block.has_focus():
59+
if parent_block and parent_block.has_focus():
6060
return Constants.FOCUS_BORDER_COLOR
6161
return outline_color
6262

0 commit comments

Comments
 (0)