Skip to content

Commit

Permalink
Disable focusing an object with orthographic camera that put the came…
Browse files Browse the repository at this point in the history
…ra in an unrecoverable state (#757)
  • Loading branch information
vincentfretin authored Sep 9, 2024
1 parent 3423fc5 commit 329f801
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/EditorControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ THREE.EditorControls = function (_object, domElement) {
var changeEvent = { type: 'change' };

this.focus = function (target) {
if (this.isOrthographic) {
return;
}
var distance;

box.setFromObject(target);
Expand Down

0 comments on commit 329f801

Please sign in to comment.