Diffusion Krita f2ad5ab4cadf

Fix merging of two shape layers (also after scaling)

Authored by dkazakov on Feb 5 2018, 9:33 PM.

Description

Fix merging of two shape layers (also after scaling)

  1. Implement correct reordering of the shapes according to zIndex (see KoShapeReorderCommand::mergeDownShapes()). Added homogenizeZIndexes() function, that can be reused in other cases for linearizing the indexes
  1. KisShapeLayer should be linked to its own KoShapeManager, otherwise transformations of the layer will not issue updates.
  1. KisShapeLayerCanvas::updateCanvas() should use toAlignedRect() to handle antialiasing correctly.

The patch also adds a unittest for checking all these bugs :)

BUG:389905

Details

Committed
dkazakovFeb 5 2018, 9:34 PM
Parents
R37:53c9df77eb55: Fix missing brush tip.
Branches
Unknown
Tags
Unknown