Explorar o código

BufferGeometry: Prevented duplicate index buffers.

tschw %!s(int64=10) %!d(string=hai) anos
pai
achega
97c70d207f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/core/BufferGeometry.js

+ 2 - 0
src/core/BufferGeometry.js

@@ -66,6 +66,8 @@ THREE.BufferGeometry.prototype = {
 			console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
 			this.setIndex( attribute );
 
+			return;
+
 		}
 
 		this.attributes[ name ] = attribute;

粤ICP备19079148号