Skip to content

fix: build puppet warp mesh before clearing pins - #16

Merged
IAmJSD merged 1 commit into
Infrawrench:mainfrom
ProdigyRahul:fix/puppet-warp-commit
Aug 24, 2026
Merged

fix: build puppet warp mesh before clearing pins#16
IAmJSD merged 1 commit into
Infrawrench:mainfrom
ProdigyRahul:fix/puppet-warp-commit

Conversation

@ProdigyRahul

@ProdigyRahul ProdigyRahul commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

fixes #15

take the pins instead of clearing them, so the mesh is still solved from a populated pin set. clearing first yielded an empty set, which mls_inverse treats as the identity, so every commit wrote back an unchanged copy.

adds plugins/tools-warp/tests/puppet_commit.rs, which drives the tool through real pointer events: four anchor pins, a centre pin dragged down, then commit. it fails on main with commit discarded the warp: only 0 pixels differ from the original.

two of the four tests cover the other direction and pass either way, so the fix cannot overshoot: undo still restores the original, and a pin set that was never dragged still commits nothing.

before

pr02-before

after

pr02-after

the same pin drag, committed with enter.

before: flat grid, round circles, deformation gone.

after: the bend survives.

@ProdigyRahul
ProdigyRahul marked this pull request as ready for review August 24, 2026 22:00
@ProdigyRahul

Copy link
Copy Markdown
Contributor Author

@IAmJSD please review. thank you in advance!

@ProdigyRahul
ProdigyRahul force-pushed the fix/puppet-warp-commit branch from 676d317 to c7da01b Compare August 24, 2026 22:06

@IAmJSD IAmJSD left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IAmJSD
IAmJSD merged commit b665779 into Infrawrench:main Aug 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

puppet warp discards the entire deformation on commit

2 participants