Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -604,11 +604,17 @@ async(c, o, b, p, d, n, m)=>{
|
|
604 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].oncontextmenu = function(e){e.preventDefault();}
|
605 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].ondrag = function(e){e.preventDefault();}
|
606 |
|
607 |
-
if (o.indexOf(n) < 0) {
|
608 |
if (o != "") { o += ","; }
|
609 |
o += n;
|
610 |
}
|
|
|
611 |
var o_ = o.split(",");
|
|
|
|
|
|
|
|
|
|
|
612 |
var dome = [];
|
613 |
for (var j=0; j<o_.length; j++) {
|
614 |
o_[j] = parseInt(o_[j]);
|
|
|
604 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].oncontextmenu = function(e){e.preventDefault();}
|
605 |
document.getElementById("model3D").getElementsByTagName("canvas")[0].ondrag = function(e){e.preventDefault();}
|
606 |
|
607 |
+
if (o.indexOf(""+n) < 0) {
|
608 |
if (o != "") { o += ","; }
|
609 |
o += n;
|
610 |
}
|
611 |
+
alert(o);
|
612 |
var o_ = o.split(",");
|
613 |
+
var q = BABYLON.Engine.LastCreatedScene.meshes;
|
614 |
+
for(i = 0; i < q.length; i++) {
|
615 |
+
let mesh = q[i];
|
616 |
+
mesh.dispose(false, true);
|
617 |
+
}
|
618 |
var dome = [];
|
619 |
for (var j=0; j<o_.length; j++) {
|
620 |
o_[j] = parseInt(o_[j]);
|