Skip to content

Commit

Permalink
Fix major regression with handles (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
MewPurPur authored Aug 21, 2024
1 parent f232c8b commit 507f252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui_parts/handles_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 507f252

Please sign in to comment.