Explorar el Código

Three.Legacy: Fixed enableScissorTest.

Mr.doob hace 9 años
padre
commit
bbfdb8df6f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/Three.Legacy.js

+ 2 - 1
src/Three.Legacy.js

@@ -447,8 +447,9 @@ Object.defineProperties( THREE.WebGLRenderer.prototype, {
 		}
 	},
 	enableScissorTest: {
-		value: function () {
+		value: function ( boolean ) {
 			console.warn( 'THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().' );
+			this.setScissorTest( boolean );
 		}
 	},
 	initMaterial: {