Преглед на файлове

CombinedCamera decouples setFov from perspective mode now

zz85 преди 14 години
родител
ревизия
973e6156e8
променени са 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();
+	}
 
 };