partial sla slice render restore

This commit is contained in:
Stewart Allen 2020-11-08 18:39:21 -05:00
commit 1c5c8e9cb4
10 changed files with 170 additions and 125 deletions

View file

@ -39,7 +39,7 @@
this.settings = settings;
this.widgets = widgets;
this.group = new THREE.Group();
// this.group = new THREE.Group();
this.printView = [];
this.movesView = [];
@ -387,23 +387,23 @@
return out;
}
PRO.getLayerCount = function() {
return this.output.length;
}
// PRO.getLayerCount = function() {
// return this.output.length;
// }
PRO.hide = function() {
this.printView.forEach(function(layer) {
layer.setVisible(false);
})
this.movesView.forEach(function(layer) {
layer.setVisible(false);
})
};
PRO.showLayer = function(index, show, moves) {
if (this.printView[index]) this.printView[index].setVisible(show);
if (this.movesView[index]) this.movesView[index].setVisible(show && moves);
};
// PRO.hide = function() {
// this.printView.forEach(function(layer) {
// layer.setVisible(false);
// })
// this.movesView.forEach(function(layer) {
// layer.setVisible(false);
// })
// };
//
// PRO.showLayer = function(index, show, moves) {
// if (this.printView[index]) this.printView[index].setVisible(show);
// if (this.movesView[index]) this.movesView[index].setVisible(show && moves);
// };
/**
* @constructor