Skip to content

Commit

Permalink
wrap init
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-buist authored Aug 9, 2024
1 parent acb1a47 commit 4c17cc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ loader.setDRACOLoader(dracoLoader);
////

//Scene1 (main) .adds
{
function init() {
//asset loader to push an array on promise
var [
base_mesh,
Expand Down Expand Up @@ -195,6 +195,7 @@ loader.setDRACOLoader(dracoLoader);

//Render loop
if (active_scene == scene1) {
init();
render();
animate();
}
Expand Down

0 comments on commit 4c17cc6

Please sign in to comment.