From 507f25268bbbc225f569f4cd9fd894bc51854ceb Mon Sep 17 00:00:00 2001 From: Mew Pur Pur <85438892+MewPurPur@users.noreply.github.com> Date: Thu, 22 Aug 2024 02:32:55 +0300 Subject: [PATCH] Fix major regression with handles (#874) --- src/ui_parts/handles_manager.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui_parts/handles_manager.gd b/src/ui_parts/handles_manager.gd index a796232b..d156f039 100644 --- a/src/ui_parts/handles_manager.gd +++ b/src/ui_parts/handles_manager.gd @@ -145,6 +145,7 @@ func update_handles() -> void: func sync_handles(xid: PackedInt32Array) -> void: var element := SVG.root_element.get_element(xid) if not element is ElementPath: + queue_redraw() return var new_handles: Array[Handle] = [] @@ -614,7 +615,7 @@ func _draw() -> void: RenderingServer.canvas_item_add_set_transform(selections_surface, element.get_transform() * SVG.root_element.canvas_transform) RenderingServer.canvas_item_add_rect(selections_surface, - bounding_box.grow(3.0 / Indications.zoom), Color.WHITE) + bounding_box.grow(4.0 / Indications.zoom), Color.WHITE) var dragged_handle: Handle = null