Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Krita Krita
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Bugzilla
    • Bugzilla
  • Merge requests 72
    • Merge requests 72
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • GraphicsGraphics
  • KritaKrita
  • Merge requests
  • !1440

Only restrict pivot to transform bound when Alt is pressed

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Mathias Wein requested to merge mwein/krita:unbound-transform-pivot into master May 04, 2022
  • Overview 1
  • Commits 1
  • Pipelines 3
  • Changes 1

This is a small change, but every once in a while I am annoyed that I can't just move the transform pivot where it needs to be without some workarounds. And it seems I'm not the only one, for example: https://krita-artists.org/t/transform-pivot-outside-selection/24619

I can't really find a good reason to restrict the pivot to the transform bound, I am not aware of any technical limitation.

Deevad and Raghukamath don't seem to oppose either, so I propose to make the pivot unrestricted by default, and since the Alt modifier is currently unused for pivot moving, use that to limit movement to the transform bounding box, so no functionality gets lost.

Test Plan

Use the transform tool on everything that supports Free Transform (pixel selection, vector shapes, transform masks...did I miss anything?) and see if there's any issues.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: unbound-transform-pivot