Procházet zdrojové kódy

WebGLProperties: Renamed .delete to .remove. See #7298.

Mr.doob před 9 roky
rodič
revize
46d0293c9c

+ 4 - 4
src/renderers/WebGLRenderer.js

@@ -551,7 +551,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 		}
 
 		// remove all webgl properties
-		properties.delete( texture );
+		properties.remove( texture );
 
 	}
 
@@ -580,8 +580,8 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		}
 
-		properties.delete( renderTarget.texture );
-		properties.delete( renderTarget );
+		properties.remove( renderTarget.texture );
+		properties.remove( renderTarget );
 
 	}
 
@@ -589,7 +589,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		releaseMaterialProgramReference( material );
 
-		properties.delete( material );
+		properties.remove( material );
 
 	}
 

+ 2 - 2
src/renderers/webgl/WebGLGeometries.js

@@ -101,11 +101,11 @@ THREE.WebGLGeometries = function ( gl, properties, info ) {
 
 		if ( attribute instanceof THREE.InterleavedBufferAttribute ) {
 
-			properties.delete( attribute.data );
+			properties.remove( attribute.data );
 
 		} else {
 
-			properties.delete( attribute );
+			properties.remove( attribute );
 
 		}
 

+ 1 - 1
src/renderers/webgl/WebGLProperties.js

@@ -22,7 +22,7 @@ THREE.WebGLProperties = function () {
 
 	};
 
-	this.delete = function ( object ) {
+	this.remove = function ( object ) {
 
 		delete properties[ object.uuid ];