Do not paint over fill layer

This commit is contained in:
luboslenco
2019-10-09 22:35:43 +02:00
parent 0929523378
commit a7af6ce326
@@ -47,6 +47,9 @@ class BrushOutputNode extends LogicNode {
UITrait.inst.lastPaintVecY = UITrait.inst.paintVec.y;
}
// Do not paint over fill layer
if (Context.layer.material_mask != null && Context.tool != ToolPicker) return;
// Paint bounds
if (UITrait.inst.paintVec.x < right && UITrait.inst.paintVec.x > left &&
UITrait.inst.paintVec.y < 1 && UITrait.inst.paintVec.y > 0 &&