freealise commited on
Commit
0c658c8
1 Parent(s): 82e74d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.x = x-128;
474
- BABYLON.Engine.LastCreatedScene.getNodes()[parseInt(document.getElementById(\"fnum\").getElementsByTagName(\"input\")[0].value)+1].position.z = y-128;
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
  }