Skip to content

Commit

Permalink
Fix more path field regressions (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
MewPurPur authored May 30, 2024
1 parent b259ed0 commit abc8e5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions src/ui_elements/pathdata_field.gd
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,18 @@ func activate_focused(idx: int) -> void:
if idx == focused_idx:
return

if is_instance_valid(focused_strip):
focused_strip.queue_free()
if hovered_idx != idx:
focused_strip = setup_path_command_controls(idx)
if idx == -1:
hovered_strip = setup_path_command_controls(hovered_idx)
if idx == -1:
if focused_idx == hovered_idx:
hovered_strip = focused_strip
focused_strip = null
else:
else:
focused_strip.queue_free()
elif idx == hovered_idx:
focused_strip = hovered_strip
hovered_strip = null
else:
focused_strip = setup_path_command_controls(idx)

focused_idx = idx
commands_container.queue_redraw()

Expand Down
2 changes: 1 addition & 1 deletion visual/icons/tag/path.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit abc8e5f

Please sign in to comment.