Explorar o código

Merge pull request #5723 from AVGP/5680-counting-buffergeometry

_this.info.memory.geometries now counting BufferGeometry correctly
Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
2fde3295c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -3630,7 +3630,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			if ( geometry instanceof THREE.BufferGeometry ) {
 
-				//
+				_this.info.memory.geometries ++;
 
 			} else if ( object instanceof THREE.Mesh ) {