Spaces:
Running
Running
Update app.py
Browse files
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);
|
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 = {
|