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

baseplane ref

parent e396ad08
Branches
No related tags found
No related merge requests found
......@@ -107,13 +107,13 @@ Highlighter = Backbone.View.extend({
if (shouldAdd){
if (!this.isVisible()) return;
this.model.addCell(this.highlighter.getNextCellPosition());
this.model.addCell(this.getNextCellPosition());
} else {
var currentIntersectedCell = this._getCurrentIntersectedCell();
if (currentIntersectedCell === this.model.basePlane[0]) return;
if (currentIntersectedCell === this.model.get("basePlane").get("mesh")) return;
this.model.removeCellFromMesh(currentIntersectedCell);
}
this.highlighter.hide();
this.hide();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment