-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Much smarter interaction between "snap" and "lock aspect ratio" settings
Locking a layer's aspect ratio *and* snapping it to nearby objects produces complex interactions (because enforcing one often breaks the other). This commit adds a clear hierarchy to the process. Locked-aspect-ratio objects are first snapped to position, then aspect ratio is re-calculated and the lock is performed (generating new width/height, potentially), then subsequent snaps on the other axis are enforced IFF aspect ratio can be maintained (in most cases they cannot). This produces much better behavior when click-drag resizing a layer with locked aspect ratio using the move/size tool, on an image with many layers, while snapping to layers is enabled.
- Loading branch information
1 parent
5a15d23
commit c741cf6
Showing
1 changed file
with
109 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters