Просмотр исходного кода

CombinedCamera decouples setFov from perspective mode now

zz85 14 лет назад
Родитель
Сommit
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();
+	}
 
 };