Parcourir la source

[Mod 0000]优化测风装置模型加载

hongrunxia il y a 2 jours
Parent
commit
3133b37881

+ 1 - 2
src/views/vent/monitorManager/windrectMonitor/windrect.threejs.ts

@@ -382,11 +382,10 @@ export const mountedThree = (playerDom) => {
         case 'dsWindRect_two':
         case 'dsWindRect_four':
         case 'dsWindRect_move':
-          if (dsWindRectObj) {
+          if (!dsWindRectObj) {
             dsWindRectObj = new dsWindRect(model);
             await dsWindRectObj.mountedThree();
           }
-
           break;
       }
     }