Browse Source

BufferGeometry: Safer check.

Mr.doob 11 years ago
parent
commit
76a41638cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

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