Преглед изворни кода

CombinedCamera decouples setFov from perspective mode now

zz85 пре 14 година
родитељ
комит
60c103648e
1 измењених фајлова са 5 додато и 1 уклоњено
  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();
+	}
 
 };