Skip to content

Commit

Permalink
Merge pull request #62 from TDT4290-group-4/61-small-fix-ensure-camer…
Browse files Browse the repository at this point in the history
…a-animations-show-up

fix(#61): 🐛 Ensure potreeViewer is always enabled
  • Loading branch information
gautegf authored Nov 10, 2025
2 parents 274515e + fd801f9 commit cfb22a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ async function init() {
POTREE_POINTCLOUD_URLS,
POTREE_SETTINGS
)

const potreeViewer = window.potreeViewer
window.viewer = window.potreeViewer
potreeViewer.addEventListener('camera_changed', updateText)
setupRightClickListener(potreeViewer)

Expand Down

0 comments on commit cfb22a9

Please sign in to comment.