Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -470,8 +470,8 @@ with gr.Blocks(css=css) as demo:
|
|
470 |
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.y = 256-y-128;
|
471 |
document.getElementById(\"cr\").setAttribute(\"r\", (256-y)/2);
|
472 |
} else {
|
473 |
-
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.
|
474 |
-
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.
|
475 |
document.getElementById(\"cr\").setAttribute(\"cx\", x);
|
476 |
document.getElementById(\"cr\").setAttribute(\"cy\", y);
|
477 |
}
|
|
|
470 |
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.y = 256-y-128;
|
471 |
document.getElementById(\"cr\").setAttribute(\"r\", (256-y)/2);
|
472 |
} else {
|
473 |
+
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.z = x-128;
|
474 |
+
BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.x = y-128;
|
475 |
document.getElementById(\"cr\").setAttribute(\"cx\", x);
|
476 |
document.getElementById(\"cr\").setAttribute(\"cy\", y);
|
477 |
}
|