diff --git a/addons/block_code/ui/blocks/utilities/background/background.gd b/addons/block_code/ui/blocks/utilities/background/background.gd index 769185b9..7fc39381 100644 --- a/addons/block_code/ui/blocks/utilities/background/background.gd +++ b/addons/block_code/ui/blocks/utilities/background/background.gd @@ -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