فهرست منبع

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