Skip to content

Fix tools not drawing in nested transform space #2422

@Keavon

Description

@Keavon

#2286 introduced a regression where tools don't draw in a way that inverses their transform to allow for in-the-viewport drawing while being placed within a nested transformation (where a group has a transform node applied to it, causing its nested children to inherit that transform), or within a tilted viewport. For example, if you draw in a tilted viewport, it shouldn't draw a tilted shape since that should be compensated for. And for example, if you draw inside of a group which has its own transform, your drawing won't be aligned with your cursor because it now fails to compensate for that.

This fixes #2370 by returning to the previous, intended, behavior. The fix for this might also re-introduce a breakage to #2146, so care should be taken to ensure that remains fixed.

Before (working): https://7ddec035.graphite.pages.dev/
After (broken): https://e7eb0a4b.graphite.pages.dev/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Completed This Milestone

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions