Advertisement
yskang

adsk-forge-LevelSectionPanel-step9

Apr 29th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. load() {
  2.     if ( this.viewer.toolbar ) {
  3.         // Toolbar is already available, create the UI
  4.         this.createUI();
  5.     } else {
  6.        // Toolbar hasn't been created yet,
  7.        //wait until we get notification of its creation
  8.        this.viewer.addEventListener(
  9.           Autodesk.Viewing.TOOLBAR_CREATED_EVENT,
  10.           this.onToolbarCreated
  11.         );
  12.     }
  13.  
  14.     return true;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement