Browse Source

1. 删除部分不要的代码

hongrunxia 3 months ago
parent
commit
22fb852087

+ 3 - 3
src/views/vent/monitorManager/gasPumpMonitor/gasPump.threejs.ts

@@ -53,7 +53,7 @@ export const setModelType = (type) => {
         model.scene.remove(gasPumpUnderObj.group);
       }
       group = gasPumpBaseObj.group;
-      model.isRender = false;
+      // model.isRender = false;
       const oldCameraPosition = { x: 15.9074, y: 5.40264, z: 27.12551 };
       setTimeout(async () => {
         model?.scene?.add(group);
@@ -75,7 +75,7 @@ export const setModelType = (type) => {
       }
       gasPumpUnderObj.addCssText();
       group = gasPumpUnderObj.group;
-      model.isRender = true;
+      // model.isRender = true;
       const oldCameraPosition = { x: 15.9074, y: 5.40264, z: 27.12551 };
       setTimeout(async () => {
         model?.scene?.add(group);
@@ -107,7 +107,7 @@ export const mountedThree = () => {
     await gasPumpUnderObj.mountedThree();
 
     addMouseEvent();
-    render();
+    // render();
     model.animate();
     resolve(null);
   });

File diff suppressed because it is too large
+ 1 - 14
src/views/vent/monitorManager/gasPumpMonitor/gasPump.threejs.under.ts


Some files were not shown because too many files changed in this diff