Skip to content

Commit

Permalink
fix LoadProject (EDL not shown in sidebar); potree#852, by @ilisalis
Browse files Browse the repository at this point in the history
  • Loading branch information
potree committed Jul 28, 2020
1 parent 4cc3128 commit fee8cac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/viewer/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,10 @@ export class Sidebar{
$('#sldFOV').slider({value: this.viewer.getFOV()});
});

this.viewer.addEventListener('use_edl_changed', (event) => {
$('#chkEDLEnabled')[0].checked = this.viewer.getEDLEnabled();
});

this.viewer.addEventListener('edl_radius_changed', (event) => {
$('#lblEDLRadius')[0].innerHTML = this.viewer.getEDLRadius().toFixed(1);
$('#sldEDLRadius').slider({value: this.viewer.getEDLRadius()});
Expand Down

0 comments on commit fee8cac

Please sign in to comment.