From d07f9c49492dbdb14ee3e6a0154db409b9eaa2e2 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 25 Dec 2021 01:48:56 +0100 Subject: [PATCH] Fix RectViewNode's _draw(). --- game/addons/world_generator/ui/RectViewNode.gd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/addons/world_generator/ui/RectViewNode.gd b/game/addons/world_generator/ui/RectViewNode.gd index 3c396298..d1ef8d87 100644 --- a/game/addons/world_generator/ui/RectViewNode.gd +++ b/game/addons/world_generator/ui/RectViewNode.gd @@ -17,7 +17,7 @@ var drag_offset : Vector2 var drag_offset_far : Vector2 func _draw(): - draw_rect(Rect2(get_position(), get_size()), Color(1, 1, 1, 1)) + draw_rect(Rect2(Vector2(), get_size()), Color(1, 1, 1, 1)) func refresh() -> void: if !edited_resource: @@ -99,7 +99,6 @@ func _gui_input(p_event : InputEvent) -> void: else: # Update while in a dragging operation. var global_pos : Vector2 = get_global_mouse_position() - global_pos.y = max(global_pos.y, 0) # Ensure title bar stays visible. var rect : Rect2 = get_rect() var min_size : Vector2 = get_combined_minimum_size()