Explorar o código

Editor: Fixed Viewport.Info.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
a32599e9e4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 {