Update app.py
Browse files
app.py
CHANGED
@@ -639,7 +639,7 @@ async(c, o, p, d, n, m)=>{
|
|
639 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.useAlphaFromDiffuseTexture = true;
|
640 |
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);});
|
641 |
}
|
642 |
-
const editControl = new EditControl(BABYLON.Engine.LastCreatedScene.meshes[parseInt(document.getElementById("
|
643 |
editControl.enableTranslation();
|
644 |
|
645 |
if (document.getElementById("model")) {
|
|
|
639 |
BABYLON.Engine.LastCreatedScene.meshes[BABYLON.Engine.LastCreatedScene.meshes.length-1].material.useAlphaFromDiffuseTexture = true;
|
640 |
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);});
|
641 |
}
|
642 |
+
const editControl = new EditControl(BABYLON.Engine.LastCreatedScene.meshes[parseInt(document.getElementById("cnum").value)], BABYLON.Engine.LastCreatedScene.activeCamera, document.getElementById("model3D").getElementsByTagName("canvas")[0], 1.0, true, 0.02);
|
643 |
editControl.enableTranslation();
|
644 |
|
645 |
if (document.getElementById("model")) {
|