فهرست منبع

WebGLGeometries: don't upload morph target attributes (#29915)

Noeri Huisman 1 سال پیش
والد
کامیت
528320b34e
1فایلهای تغییر یافته به همراه0 افزوده شده و 28 حذف شده
  1. 0 28
      src/renderers/webgl/WebGLGeometries.js

+ 0 - 28
src/renderers/webgl/WebGLGeometries.js

@@ -22,18 +22,6 @@ function WebGLGeometries( gl, attributes, info, bindingStates ) {
 
 		}
 
-		for ( const name in geometry.morphAttributes ) {
-
-			const array = geometry.morphAttributes[ name ];
-
-			for ( let i = 0, l = array.length; i < l; i ++ ) {
-
-				attributes.remove( array[ i ] );
-
-			}
-
-		}
-
 		geometry.removeEventListener( 'dispose', onGeometryDispose );
 
 		delete geometries[ geometry.id ];
@@ -87,22 +75,6 @@ function WebGLGeometries( gl, attributes, info, bindingStates ) {
 
 		}
 
-		// morph targets
-
-		const morphAttributes = geometry.morphAttributes;
-
-		for ( const name in morphAttributes ) {
-
-			const array = morphAttributes[ name ];
-
-			for ( let i = 0, l = array.length; i < l; i ++ ) {
-
-				attributes.update( array[ i ], gl.ARRAY_BUFFER );
-
-			}
-
-		}
-
 	}
 
 	function updateWireframeAttribute( geometry ) {

粤ICP备19079148号