|
@@ -51,6 +51,7 @@ class TabLayers {
|
|
App.notifyOnNextFrame(_next);
|
|
App.notifyOnNextFrame(_next);
|
|
Context.raw.layerPreviewDirty = true;
|
|
Context.raw.layerPreviewDirty = true;
|
|
History.newBlackMask();
|
|
History.newBlackMask();
|
|
|
|
+ App.updateFillLayers();
|
|
}
|
|
}
|
|
if (ui.button(tr("White Mask"), Left)) {
|
|
if (ui.button(tr("White Mask"), Left)) {
|
|
if (l.isMask()) Context.setLayer(l.parent);
|
|
if (l.isMask()) Context.setLayer(l.parent);
|
|
@@ -63,6 +64,7 @@ class TabLayers {
|
|
App.notifyOnNextFrame(_next);
|
|
App.notifyOnNextFrame(_next);
|
|
Context.raw.layerPreviewDirty = true;
|
|
Context.raw.layerPreviewDirty = true;
|
|
History.newWhiteMask();
|
|
History.newWhiteMask();
|
|
|
|
+ App.updateFillLayers();
|
|
}
|
|
}
|
|
if (ui.button(tr("Fill Mask"), Left)) {
|
|
if (ui.button(tr("Fill Mask"), Left)) {
|
|
if (l.isMask()) Context.setLayer(l.parent);
|
|
if (l.isMask()) Context.setLayer(l.parent);
|
|
@@ -75,6 +77,7 @@ class TabLayers {
|
|
iron.App.notifyOnInit(_init);
|
|
iron.App.notifyOnInit(_init);
|
|
Context.raw.layerPreviewDirty = true;
|
|
Context.raw.layerPreviewDirty = true;
|
|
History.newFillMask();
|
|
History.newFillMask();
|
|
|
|
+ App.updateFillLayers();
|
|
}
|
|
}
|
|
ui.enabled = !Context.raw.layer.isGroup() && !Context.raw.layer.isInGroup();
|
|
ui.enabled = !Context.raw.layer.isGroup() && !Context.raw.layer.isInGroup();
|
|
if (ui.button(tr("Group"), Left)) {
|
|
if (ui.button(tr("Group"), Left)) {
|
|
@@ -836,11 +839,16 @@ class TabLayers {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
Context.raw.layer = l;
|
|
Context.raw.layer = l;
|
|
History.deleteLayer();
|
|
History.deleteLayer();
|
|
l.delete();
|
|
l.delete();
|
|
|
|
|
|
|
|
+ if (l.isMask()) {
|
|
|
|
+ Context.raw.layer = l.parent;
|
|
|
|
+ App.updateFillLayers();
|
|
|
|
+ }
|
|
|
|
+
|
|
// Remove empty group
|
|
// Remove empty group
|
|
if (l.isInGroup() && l.getContainingGroup().getChildren() == null) {
|
|
if (l.isInGroup() && l.getContainingGroup().getChildren() == null) {
|
|
var g = l.getContainingGroup();
|
|
var g = l.getContainingGroup();
|