allow default layer off. disable moves layers default
This commit is contained in:
parent
de26819d61
commit
024be442bd
4 changed files with 13 additions and 5 deletions
|
|
@ -18,7 +18,7 @@
|
|||
};
|
||||
}
|
||||
|
||||
setLayer(layer, colors) {
|
||||
setLayer(layer, colors, off) {
|
||||
let layers = this.layers;
|
||||
if (typeof(colors) === 'number') {
|
||||
colors = {
|
||||
|
|
@ -28,6 +28,7 @@
|
|||
};
|
||||
}
|
||||
this.current = layers[layer] = layers[layer] || {
|
||||
off: off === true,
|
||||
lines: [],
|
||||
polys: [],
|
||||
faces: [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue