2
0
Эх сурвалжийг харах

BufferGeometry: Prevented duplicate index buffers.

tschw 10 жил өмнө
parent
commit
97c70d207f

+ 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;