Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Fix Spline tool in-progress drawing being cleared on tool change

Open LixiviaDev opened this issue 7 months ago • 3 comments

Spline Tool: Spline won't stay unless closed or (Esc or Enter) is pressed.

My changes:

  • Removed "::AbortTransaction" message, which completely cleared the new spline on "::abort".
  • Added "delete_preview()" function to delete the preview point that tracks the mouse.
  • Added "::EndTransaction" message to signal that we want to save the new spline as is.

LixiviaDev avatar Jun 30 '25 13:06 LixiviaDev

📦 Build Complete for 1c24ad09281adc0c5085633036edb8d197dbae8e
https://713097c1.graphite.pages.dev

github-actions[bot] avatar Jul 05 '25 21:07 github-actions[bot]

This does not appear to solve the problem in the specific case of switching to the Select tool (with the V hotkey or clicking its icon). It does seem to work as expected when switching to the other tools that I've tested. Could you please take a look at solving it for that tool?

Keavon avatar Jul 05 '25 22:07 Keavon

I'm really busy these days, I'll take a look at it as soon as I can

LixiviaDev avatar Jul 05 '25 23:07 LixiviaDev