Skip to content

Commit

Permalink
Fix not setting correct position #3839
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMehl committed Feb 11, 2025
1 parent ed6f9cc commit 3b68219
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class AddCustomScenarioDialogComponent {
threeOrbitControlsService: ThreeMapControlsService
) {
this.scenarioContent = getInitialScenarioMetricProperties(this.state.getValue(), {
camera: threeCameraService.camera.position,
cameraTarget: threeOrbitControlsService.controls.target
camera: threeCameraService.camera.position.clone(),
cameraTarget: threeOrbitControlsService.controls.target.clone()
})
}

Expand Down

0 comments on commit 3b68219

Please sign in to comment.