소스 검색

Editor: Fixed Viewport.Info.

Mr.doob 10 년 전
부모
커밋
a32599e9e4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      editor/js/Viewport.Info.js

+ 2 - 2
editor/js/Viewport.Info.js

@@ -55,9 +55,9 @@ Viewport.Info = function ( editor ) {
 
 						vertices += geometry.attributes.position.array.length / 3;
 
-						if ( geometry.attributes.index !== undefined ) {
+						if ( geometry.index !== undefined ) {
 
-							triangles += geometry.attributes.index.array.length / 3;
+							triangles += geometry.index.array.length / 3;
 
 						} else {