Skip to content

Qchai/Transform Tool Automatically creates Transform Mask for Clone Layers. (Bug 349152)

Inside the start stroke function in KisTransformTool, if current node is a Clone Layer, get KisTransformMask children of the current node.

If one or more children exists, set the first child as active through the canvas' KisNodeManager; otherwise, trigger the "add_new_transform_mask" action through the canvas' KisActionManager.

Test Plan

Play test by cloning paint/group layers one/multiple time(s), using the transform tool why a clone layer is active. Tool should automatically create/select Transform masks for the active clone layer; and transform the mask when used.

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.
Edited by Kuntal Majumder

Merge request reports

Loading