Explorar el Código

WebGLRenderer: Clean up.

Mr.doob hace 9 años
padre
commit
5cf0cb7486
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      src/renderers/WebGLRenderer.js

+ 6 - 1
src/renderers/WebGLRenderer.js

@@ -1937,7 +1937,12 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		if ( uvScaleMap !== undefined ) {
 
-			if ( uvScaleMap instanceof THREE.WebGLRenderTarget ) uvScaleMap = uvScaleMap.texture;
+			if ( uvScaleMap instanceof THREE.WebGLRenderTarget ) {
+
+				uvScaleMap = uvScaleMap.texture;
+
+			}
+
 			var offset = uvScaleMap.offset;
 			var repeat = uvScaleMap.repeat;