20 std::back_inserter(cloneLayers),
22 return item.m_leaf->node()->inherits(
"KisCloneLayer") &&
23 (item.m_position & (N_FILTHY | N_ABOVE_FILTHY | N_EXTRA));
26 for (
auto it = cloneLayers.begin(); it != cloneLayers.end(); ++it) {
46 const QRect srcRect = it->m_applyRect.translated(-clone->
x(), -clone->
y());
48 QRegion prepareRegion(srcRect);
55 if (!needRectOnSource.isEmpty()) {
56 prepareRegion += needRectOnSource;
59 Q_FOREACH (
const QRect &rc, preparedRects) {
63 for (
auto it = prepareRegion.begin(); it != prepareRegion.end(); ++it) {
74 KisRenderPassFlags renderFlags,
const QRect &cropRect)
100 currentLeaf = currentLeaf->prevSibling();
109 currentLeaf = startWith->lastChild();
111 if(currentLeaf->canHaveChildLayers()) {
114 currentLeaf = currentLeaf->prevSibling();