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

render

parent e248cb03
Branches
Tags
No related merge requests found
...@@ -49,10 +49,12 @@ BasePlane = Backbone.Model.extend({ ...@@ -49,10 +49,12 @@ BasePlane = Backbone.Model.extend({
_removeMesh: function(){ _removeMesh: function(){
window.three.sceneRemove(this.get("mesh"), "basePlane"); window.three.sceneRemove(this.get("mesh"), "basePlane");
window.three.render();
}, },
destroy: function(){ destroy: function(){
this.set("zIndex", null, {silent:true}); this.set("zIndex", null, {silent:true});
this._removeMesh();
this.set("mesh", null, {silent:true}); this.set("mesh", null, {silent:true});
this.set("material", null, {silent:true}); this.set("material", null, {silent:true});
this.set("unitGeometry", null, {silent:true}); this.set("unitGeometry", null, {silent:true});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment