Ver código fonte

Merge branch 'master' into dev

Mr.doob 9 anos atrás
pai
commit
579d6d96b7
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      editor/js/libs/app.js

+ 6 - 1
editor/js/libs/app.js

@@ -247,7 +247,12 @@ var APP = {
 
 		this.dispose = function () {
 
-			this.dom.removeChild( renderer.domElement );
+			while ( this.dom.children.length ) {
+
+				this.dom.removeChild( this.dom.firstChild );
+
+			}
+
 			renderer.dispose();
 
 		};