Scale decal mask radius in 2D view

This commit is contained in:
Lubos Lenco
2021-07-08 12:40:06 +02:00
parent 3f0de82046
commit ff0ed14b4d
+1 -1
View File
@@ -34,7 +34,7 @@ class Uniforms {
var decalMask = decal && Operator.shortcut(Config.keymap.decal_mask + "+" + Config.keymap.action_paint, ShortcutDown);
var brushDecalMaskRadius = Context.brushDecalMaskRadius;
if (Config.raw.brush_3d) {
brushDecalMaskRadius *= Context.paint2d ? 0.55 : 2.0;
brushDecalMaskRadius *= Context.paint2d ? 0.55 * UIView2D.inst.panScale : 2.0;
}
var radius = decalMask ? brushDecalMaskRadius : Context.brushRadius;
var val = (radius * Context.brushNodesRadius) / 15.0;