Skip to content

Commit 9a3ea49

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func _ready():
4747

4848

4949
func _get_border_color() -> Color:
50-
if parent_block.has_focus():
50+
if parent_block and parent_block.has_focus():
5151
return Constants.FOCUS_BORDER_COLOR
5252
return outline_color
5353

0 commit comments

Comments
 (0)