freealise commited on
Commit
cd2f72d
1 Parent(s): 69a879d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -643,8 +643,8 @@ async(p, d, n)=>{
643
  bg[i] /= 255;
644
  }
645
  BABYLON.Engine.LastCreatedScene.clearColor = new BABYLON.Color4(bg[0], bg[1], bg[2], bg[3]);
646
- //BABYLON.Engine.LastCreatedScene.autoClear = false;
647
- //BABYLON.Engine.LastCreatedScene.autoClearDepthAndStencil = false;
648
  for (var i=0; i<BABYLON.Engine.LastCreatedScene.getNodes().length; i++) {
649
  if (BABYLON.Engine.LastCreatedScene.getNodes()[i].material) {
650
  BABYLON.Engine.LastCreatedScene.getNodes()[i].material.pointSize = Math.ceil(Math.log2(Math.PI/document.getElementById("zoom").value));
@@ -670,13 +670,7 @@ async(p, d, n)=>{
670
  } catch(e) {alert(e);}
671
  BABYLON.Engine.LastCreatedScene.getAnimationRatio();
672
  BABYLON.Engine.LastCreatedScene.activeCamera.inertia = 0.0;
673
- BABYLON.Engine.LastCreatedScene.getMeshByName(\"dome_mesh\").convertToUnIndexedMesh();
674
- BABYLON.Engine.LastCreatedScene.getMeshByName(\"dome_mesh\").material.freeze();
675
- BABYLON.Engine.LastCreatedScene.getMeshByName(\"dome_mesh\").freezeWorldMatrix();
676
- BABYLON.Engine.LastCreatedScene.getMeshByName(\"dome_mesh\").doNotSyncBoundingInfo = true;
677
- BABYLON.Engine.LastCreatedScene.getMeshByName(\"dome_mesh\").alwaysSelectAsActiveMesh = true;
678
- BABYLON.Engine.LastCreatedScene.freezeActiveMeshes();
679
- BABYLON.Engine.LastCreatedScene.skipPointerMovePicking = true;
680
  });
681
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
682
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {
 
643
  bg[i] /= 255;
644
  }
645
  BABYLON.Engine.LastCreatedScene.clearColor = new BABYLON.Color4(bg[0], bg[1], bg[2], bg[3]);
646
+ BABYLON.Engine.LastCreatedScene.autoClear = false;
647
+ BABYLON.Engine.LastCreatedScene.autoClearDepthAndStencil = false;
648
  for (var i=0; i<BABYLON.Engine.LastCreatedScene.getNodes().length; i++) {
649
  if (BABYLON.Engine.LastCreatedScene.getNodes()[i].material) {
650
  BABYLON.Engine.LastCreatedScene.getNodes()[i].material.pointSize = Math.ceil(Math.log2(Math.PI/document.getElementById("zoom").value));
 
670
  } catch(e) {alert(e);}
671
  BABYLON.Engine.LastCreatedScene.getAnimationRatio();
672
  BABYLON.Engine.LastCreatedScene.activeCamera.inertia = 0.0;
673
+ //BABYLON.Engine.LastCreatedScene.getMeshByName(\"dome_mesh\").convertToUnIndexedMesh();
 
 
 
 
 
 
674
  });
675
  if (!BABYLON.Engine.LastCreatedScene.activeCamera.metadata) {
676
  BABYLON.Engine.LastCreatedScene.activeCamera.metadata = {