From 0fc52597929978473cccee130e2711da0f6daeb6 Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Fri, 16 Dec 2016 10:47:38 +0100 Subject: [PATCH] THREE.Legacy: Better warning for Matrix4.makeFrustum() --- docs/api/deprecated/DeprecatedList.html | 2 +- src/Three.Legacy.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/deprecated/DeprecatedList.html b/docs/api/deprecated/DeprecatedList.html index ae40199f41..0a8f79bc12 100644 --- a/docs/api/deprecated/DeprecatedList.html +++ b/docs/api/deprecated/DeprecatedList.html @@ -337,7 +337,7 @@ Matrix4.applyToVector3Array() has been removed.

- Matrix4.makeFrustum() has been renamed to [page:Matrix4.makePerspective](). + Matrix4.makeFrustum() has been removed. Use [page:Matrix4.makePerspective]( left, right, top, bottom, near, far ) instead. diff --git a/src/Three.Legacy.js b/src/Three.Legacy.js index dc7c275ca2..92bafb71cf 100644 --- a/src/Three.Legacy.js +++ b/src/Three.Legacy.js @@ -469,7 +469,7 @@ Object.assign( Matrix4.prototype, { }, makeFrustum: function( left, right, bottom, top, near, far ) { - console.warn( 'THREE.Matrix4: .makeFrustum() has been renamed to .makePerspective().' ); + console.warn( 'THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.' ); return this.makePerspective( left, right, top, bottom, near, far ); } -- GitLab