Parcourir la source

BufferGeometry: Safer check.

Mr.doob il y a 12 ans
Parent
commit
76a41638cc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -59,7 +59,7 @@ THREE.BufferGeometry.prototype = {
 
 
 			start: start,
 			start: start,
 			count: count,
 			count: count,
-			index: indexOffset || 0
+			index: indexOffset !== undefined ? indexOffset : 0
 
 
 		} );
 		} );
 
 

粤ICP备19079148号