Parcourir la source

Merge branch 'master' into dev

Mr.doob il y a 12 ans
Parent
commit
180af7ea35
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      src/core/BufferGeometry.js

+ 7 - 0
src/core/BufferGeometry.js

@@ -476,6 +476,13 @@ THREE.BufferGeometry.prototype = {
 		this.hasTangents = true;
 		this.hasTangents = true;
 		this.tangentsNeedUpdate = true;
 		this.tangentsNeedUpdate = true;
 
 
+	},
+
+	deallocate: function () {
+
+		var index = THREE.GeometryLibrary.indexOf( this );
+		if ( index !== -1 ) THREE.GeometryLibrary.splice( index, 1 );
+
 	}
 	}
 
 
 };
 };