Spaces:
Starting
Starting
Update app.py
Browse files
app.py
CHANGED
@@ -620,7 +620,7 @@ async(c, o, b, p, d, n, m)=>{
|
|
620 |
if (o != "") { o += ","; }
|
621 |
o += n;
|
622 |
}
|
623 |
-
alert(o);
|
624 |
var o_ = o.split(",");
|
625 |
var q = BABYLON.Engine.LastCreatedScene.meshes;
|
626 |
for(i = 0; i < q.length; i++) {
|
@@ -630,7 +630,6 @@ async(c, o, b, p, d, n, m)=>{
|
|
630 |
var dome = [];
|
631 |
for (var j=0; j<o_.length; j++) {
|
632 |
o_[j] = parseInt(o_[j]);
|
633 |
-
alert(o_[j]);
|
634 |
dome[j] = new BABYLON.PhotoDome("dome"+j, p[o_[j]].image.url,
|
635 |
{
|
636 |
resolution: 16,
|
@@ -647,6 +646,7 @@ async(c, o, b, p, d, n, m)=>{
|
|
647 |
} else {
|
648 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].applyDisplacementMap(m[o_[j]].url, 0, 255, function(m){try{alert(BABYLON.Engine.Version);}catch(e){alert(e);}}, null, null, true, function(e){alert(e);});
|
649 |
}
|
|
|
650 |
}
|
651 |
clearInterval(intv);
|
652 |
}
|
|
|
620 |
if (o != "") { o += ","; }
|
621 |
o += n;
|
622 |
}
|
623 |
+
//alert(o);
|
624 |
var o_ = o.split(",");
|
625 |
var q = BABYLON.Engine.LastCreatedScene.meshes;
|
626 |
for(i = 0; i < q.length; i++) {
|
|
|
630 |
var dome = [];
|
631 |
for (var j=0; j<o_.length; j++) {
|
632 |
o_[j] = parseInt(o_[j]);
|
|
|
633 |
dome[j] = new BABYLON.PhotoDome("dome"+j, p[o_[j]].image.url,
|
634 |
{
|
635 |
resolution: 16,
|
|
|
646 |
} else {
|
647 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].applyDisplacementMap(m[o_[j]].url, 0, 255, function(m){try{alert(BABYLON.Engine.Version);}catch(e){alert(e);}}, null, null, true, function(e){alert(e);});
|
648 |
}
|
649 |
+
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].visibility = 0.9999;
|
650 |
}
|
651 |
clearInterval(intv);
|
652 |
}
|