Files
photocraft/crates/engine
Hartmut Nörenberg e24efcf762 feat(engine): reset a smart object's transform
Layer > Smart Objects > Reset Transform (#11662): the placement goes back to
100 % of the current contents' own box, with rotation, skew, Distort and
Perspective cleared and the object left centred where it sits, in one history
step. Photoshop resets the transform and not the warp, so the smart object's
Warp (kept in source space) and its smart filter stack stay as they are.

The map is applied through the Free Transform path, so a linked layer or
vector mask and the Smart Filter mask follow the placement back and the object
re-renders losslessly from its source. transform_by_map is the projective
sibling of transform_by: the step from a Distorted placement to an axis-aligned
one is not affine. The exact reset map is pinned onto the placement afterwards,
because new * old^-1 * old only lands on it to float noise and would otherwise
keep a nearly affine perspective in the document.
2026-11-06 18:13:51 +01:00
..