Explorar o código

Three.Legacy: Fixed enableScissorTest.

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