mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
CombinedCamera decouples setFov from perspective mode now
This commit is contained in:
@@ -99,7 +99,11 @@ THREE.CombinedCamera.prototype.toOrthographic = function () {
|
||||
THREE.CombinedCamera.prototype.setFov = function(fov) {
|
||||
this.fov = fov;
|
||||
|
||||
this.toPerspective();
|
||||
if (this.inPersepectiveMode) {
|
||||
this.toPerspective();
|
||||
} else {
|
||||
this.toOrthographic();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user