Update app.py
Browse files
app.py
CHANGED
@@ -642,7 +642,7 @@ async(c, o, p, d, n, m)=>{
|
|
642 |
document.getElementById("cnum").innerHTML += '<option value="' + o_[j] + '">' + j + '</option>';
|
643 |
}
|
644 |
loadEditControl();
|
645 |
-
const editControl = new EditControl(BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1
|
646 |
editControl.enableTranslation();
|
647 |
document.getElementById("cnum").onchange = function(e) {
|
648 |
editControl.switchTo(BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1-parseInt(e.target.value)], true);
|
|
|
642 |
document.getElementById("cnum").innerHTML += '<option value="' + o_[j] + '">' + j + '</option>';
|
643 |
}
|
644 |
loadEditControl();
|
645 |
+
const editControl = new EditControl(BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1], BABYLON.Engine.LastCreatedScene.activeCamera, document.getElementById("model3D").getElementsByTagName("canvas")[0], 1.0, true, 0.02);
|
646 |
editControl.enableTranslation();
|
647 |
document.getElementById("cnum").onchange = function(e) {
|
648 |
editControl.switchTo(BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1-parseInt(e.target.value)], true);
|