freealise commited on
Commit
b1198e4
·
verified ·
1 Parent(s): 9738e3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("fnum").getElementsByTagName("input")[0].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")) {
 
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")) {