Skip to content
Snippets Groups Projects
Commit 0b85b281 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

bugfix

parent d203a668
No related branches found
No related tags found
No related merge requests found
......@@ -74,8 +74,7 @@ function ThreeModel(){
} else if (type == "part"){
parts.splice(parts.indexOf(objectToRemove), 1);
} else if (type == "basePlane"){
console.warn("something is wrong, deleting base plane");
basePlane.splice(basePlane.indexOf(objectToRemove), 1);
basePlane = [];
}
scene.remove(objectToRemove);
......
......@@ -206,7 +206,7 @@ ThreeView = Backbone.View.extend({
if (!this.highlighter.visible) return;
this.lattice.addCell(this.highlighter.geometry.vertices[0]);
} else {
if (this.currentIntersectedCell === this.basePlane) return;
if (this.currentIntersectedCell === this.model.basePlane[0]) return;
this.lattice.removeCellFromMesh(this.currentIntersectedCell);
}
this._hideHighlighter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment