Set object mask when creating paint layer

This commit is contained in:
luboslenco
2020-01-24 00:25:18 +01:00
parent b286935e34
commit f40d66dd03
+1
View File
@@ -376,6 +376,7 @@ class Layers {
public static function newLayer(clear = true): LayerSlot {
if (Project.layers.length > 255) return null;
var l = new LayerSlot();
l.objectMask = UITrait.inst.layerFilter;
Project.layers.push(l);
Context.setLayer(l);
if (clear) iron.App.notifyOnRender(l.clear);