Skip to content

Fix solidify stroke node ignoring transforms applied before stroke node#3683

Merged
Keavon merged 2 commits intoGraphiteEditor:masterfrom
motherboardMage:fix-solidify-stroke
Feb 15, 2026
Merged

Fix solidify stroke node ignoring transforms applied before stroke node#3683
Keavon merged 2 commits intoGraphiteEditor:masterfrom
motherboardMage:fix-solidify-stroke

Conversation

@motherboardMage
Copy link
Contributor

@motherboardMage motherboardMage commented Jan 25, 2026

This PR addresses the issue raised in https://discord.com/channels/731730685944922173/881073965047636018/1416281986661613669

Solidify stroke now applies the stroke's transform to the path before generating geometry and then reverses the transform.

The rectangle on the left is 600px by 600px with transform scale at 1x and the one on the right is 100px by 100px with transform scale set to 6x on both axes.

Before
Screenshot 2026-01-26 at 3 02 49 AM

After
Screenshot 2026-01-26 at 3 02 28 AM

@motherboardMage motherboardMage changed the title fix: solidify_stroke node now applies transformations before calculating the stroke Fix solidify stroke node ignoring transforms applied before stroke node Jan 25, 2026
Copy link
Contributor

@0HyperCube 0HyperCube left a comment

Choose a reason for hiding this comment

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

Looks good; thanks for working on this fix.

@motherboardMage
Copy link
Contributor Author

Thanks for your help and insights @0HyperCube !

Copy link
Contributor

@Annonnymmousss Annonnymmousss left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the Solidify Stroke node was ignoring transforms applied to strokes before the node. The fix applies the stroke's transform to the path before generating geometry and then reverses the transform on the result, ensuring that strokes with non-identity transforms (e.g., scale) are rendered correctly.

Changes:

  • Modified the solidify_stroke function to apply stroke.transform to bezier paths before stroke solidification
  • Applied the inverse transform to the solidified paths to return them to the original coordinate space

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Keavon Keavon force-pushed the fix-solidify-stroke branch from 5072b6f to bd4614f Compare February 14, 2026 07:03
motherboardMage and others added 2 commits February 15, 2026 11:39
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Keavon Keavon force-pushed the fix-solidify-stroke branch from bd4614f to dca9ee9 Compare February 15, 2026 19:40
@Keavon Keavon enabled auto-merge (squash) February 15, 2026 19:40
@Keavon Keavon merged commit 87739ff into GraphiteEditor:master Feb 15, 2026
4 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.

4 participants