Przeglądaj źródła

BufferGeometry: fix clone index data copy (#30680)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 1 rok temu
rodzic
commit
b91fd11291
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -1352,7 +1352,7 @@ class BufferGeometry extends EventDispatcher {
 
 
 		if ( index !== null ) {
 		if ( index !== null ) {
 
 
-			this.setIndex( index.clone( data ) );
+			this.setIndex( index.clone() );
 
 
 		}
 		}
 
 

粤ICP备19079148号