Handle brush scaling for decal mask

This commit is contained in:
luboslenco
2020-10-28 19:51:15 +01:00
parent 981173f7d6
commit a22ec67f83
6 changed files with 74 additions and 29 deletions
+2 -1
View File
@@ -379,7 +379,8 @@ class RenderPathPaint {
mx = (Context.lockStartedX - iron.App.x()) / iron.App.w();
my = 1.0 - (Context.lockStartedY - iron.App.y()) / iron.App.h();
}
drawCursor(mx, my, Context.brushNodesRadius * Context.brushRadius / 3.4);
var radius = decalMask ? Context.brushDecalMaskRadius : Context.brushRadius;
drawCursor(mx, my, Context.brushNodesRadius * radius / 3.4);
// if (Context.brushLazyRadius > 0 && (Context.tool == ToolBrush || Context.tool == ToolEraser)) {
// var _brushRadius = Context.brushRadius;