提交 3eff6a56 编写于 作者: T tschw 提交者: Mr.doob

PerspectiveCamera: Deprecated .setLens -> Legacy.

上级 ee6d2900
......@@ -251,6 +251,18 @@ Object.defineProperties( THREE.Object3D.prototype, {
//
THREE.PerspectiveCamera.prototype.setLens = function( focalLength, filmGauge ) {
console.warn( "THREE.PerspectiveCamera.setLens is deprecated. " +
"Use .setFocalLength and .filmGauge for a photographic setup." );
if ( filmGauge !== undefined ) this.filmGauge = filmGauge;
this.setFocalLength( focalLength );
};
//
Object.defineProperties( THREE, {
PointCloud: {
value: function ( geometry, material ) {
......
......@@ -53,21 +53,6 @@ THREE.PerspectiveCamera.prototype = Object.assign( Object.create( THREE.Camera.p
},
/**
* Sets the FOV by focal length (DEPRECATED).
*
* Optionally also sets .filmGauge, otherwise uses it. See .setFocalLength.
*/
setLens: function ( focalLength, filmGauge ) {
console.warn( "THREE.PerspectiveCamera.setLens is deprecated. " +
"Use .setFocalLength and .filmGauge for a photographic setup." );
if ( filmGauge !== undefined ) this.filmGauge = filmGauge;
this.setFocalLength( focalLength );
},
/**
* Sets the FOV by focal length in respect to the current .filmGauge.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册