Browse Source

CombinedCamera decouples setFov from perspective mode now

zz85 13 years ago
parent
commit
973e6156e8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/extras/cameras/CombinedCamera.js

+ 5 - 1
src/extras/cameras/CombinedCamera.js

@@ -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();
+	}
 
 };