Skip to content

Commit

Permalink
fix: make sure TWEEN in flexible camera manager works as expected (#4729
Browse files Browse the repository at this point in the history
)
  • Loading branch information
haakonflatval-cognite authored Aug 28, 2024
1 parent f1ff504 commit f24bab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viewer/packages/camera-manager/src/Flexible/moveCamera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export function moveCameraPositionAndTargetTo(
removeEventListeners();
})
.start(TWEEN.now());

TWEEN.add(tween);
}

export function moveCameraTargetTo(manager: FlexibleCameraManager, target: Vector3, duration?: number): void {
Expand Down

0 comments on commit f24bab3

Please sign in to comment.