UV scale per fill layer

This commit is contained in:
luboslenco
2019-10-15 00:01:41 +02:00
parent 49fc2adb13
commit f7d659879c
9 changed files with 22 additions and 9 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ class Uniforms {
return val;
}
else if (link == '_brushScale') {
var val = UITrait.inst.brushScale * UITrait.inst.brushNodesScale;
var nodesScale = UITrait.inst.brushNodesScale;
var fill = Context.layer.material_mask != null;
var val = (fill ? Context.layer.uvScale : UITrait.inst.brushScale) * nodesScale;
return val;
}
else if (link == '_texpaintSize') {