Ver Fonte

WebGLRenderer: explicit check for LOD autoUpdate.

Mr.doob há 6 anos atrás
pai
commit
07f30905df
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1261,7 +1261,7 @@ function WebGLRenderer( parameters ) {
 
 			} else if ( object.isLOD ) {
 
-				if ( object.autoUpdate ) object.update( camera );
+				if ( object.autoUpdate === true ) object.update( camera );
 
 			} else if ( object.isLight ) {