freealise commited on
Commit
09ad095
1 Parent(s): b8c0296

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -643,7 +643,7 @@ async(p, d, n)=>{
643
  let mesh = BABYLON.Engine.LastCreatedScene.getMeshByName("dome_mesh")._children[i];
644
  mesh.dispose(false, true);
645
  }
646
- BABYLON.Engine.LastCreatedScene.getMeshByName("dome_mesh").applyDisplacementMap(d.background.url, 0, 255, function(m){try{BABYLON.Engine.LastCreatedScene.addMesh(m,false);alert(JSON.stringify(m));}catch(e){alert(e);}}, null, null, true, function(e){alert(e);});
647
  });
648
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
649
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
 
643
  let mesh = BABYLON.Engine.LastCreatedScene.getMeshByName("dome_mesh")._children[i];
644
  mesh.dispose(false, true);
645
  }
646
+ BABYLON.Engine.LastCreatedScene.getMeshByName("dome_mesh").applyDisplacementMap(d.background.url, 0, 255, function(m){try{alert(BABYLON.Engine.Version);BABYLON.Engine.LastCreatedScene.addMesh(m,false);BABYLON.Engine.LastCreatedScene.getMeshByName("dome_mesh").dispose();}catch(e){alert(e);}}, null, null, true, function(e){alert(e);});
647
  });
648
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
649
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {