Commit cc6510ba authored by Christian Winter's avatar Christian Winter

guide layer added to bottom

parent cb582ff1
Pipeline #4758040 passed with stage
in 1 minute and 4 seconds
......@@ -5,11 +5,14 @@
this.currentLayer = null;
}
static createNewLayer(selectNewLayer, name) {
static createNewLayer(selectNewLayer, name, addToBottom) {
let layer = new Layer();
if (name)
layer.name = name;
this.layers.push(layer);
if (addToBottom)
this.layers = [layer].concat(this.layers);
else
this.layers.push(layer);
if (selectNewLayer)
this.selectLayerWithID(this.layers.length - 1);
......
......@@ -21,7 +21,7 @@
}
}
if (!done) {
let layer = File.createNewLayer(false, "Guides");
let layer = File.createNewLayer(false, "Guides", true);
layer.hideInRenderPreview = true;
GUI.objectHierarchyChanged();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment