소스 검색

fixed early-out for geometry that has index, but no position attribute

Tomasz Dysinski 6 년 전
부모
커밋
905b55a4a3
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      src/renderers/WebGLRenderer.js

+ 9 - 2
src/renderers/WebGLRenderer.js

@@ -742,8 +742,15 @@ function WebGLRenderer( parameters ) {
 
 		//
 
-		if ( index !== null && index.count === 0 ) return;
-		if ( position === undefined || position.count === 0 ) return;
+		if ( index === null ) {
+
+			if ( position === undefined || position.count === 0 ) return;
+
+		} else if ( index.count === 0 ) {
+
+			return;
+
+		}
 
 		//