Say why a brush cannot paint; paint at the layer's own resolution; Cancel and Apply only when an edit waits, scaled layers' scale (13.11)
This commit is contained in:
1 parent
51e373af4c
commit
cc9bf95722
24 files changed
+820
-129
No files matched your search
@@ -58,6 +58,14 @@ LayerTransform BrushStroke::transform(const QRectF &bounds) const
|
||||
return result;
|
||||
}
|
||||
|
||||
// Offset into grid pixels, turned and scaled as the layer.
|
||||
QRectF BrushStroke::gridRect(const QRectF &rect, QSizeF offset) const
|
||||
{
|
||||
const QTransform toGrid = pixelToDocument.inverted();
|
||||
const QPointF shift = toGrid.map(QPointF(offset.width(), offset.height())) - toGrid.map(QPointF(0, 0));
|
||||
return rect.translated(-shift);
|
||||
}
|
||||
|
||||
// Swift's heal: the painted spot rebuilt from nearby texture.
|
||||
void BrushStroke::heal()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user