diff --git a/addons/world_generator/ui/RectView.gd b/addons/world_generator/ui/RectView.gd index 5e25439..29f94d4 100644 --- a/addons/world_generator/ui/RectView.gd +++ b/addons/world_generator/ui/RectView.gd @@ -80,7 +80,8 @@ func _draw(): draw_line(Vector2(get_size().x - _rect_scale, get_size().y - rsh), Vector2(get_size().x - _rect_scale, get_size().y), c) draw_line(Vector2(get_size().x - rsh, get_size().y - _rect_scale), Vector2(get_size().x, get_size().y - _rect_scale), c) - edited_resource.editor_draw_additional_background(self) + if edited_resource: + edited_resource.editor_draw_additional_background(self) func refresh() -> void: clear()