bill 4 månader sedan
förälder
incheckning
a31b19a343
1 ändrade filer med 16 tillägg och 4 borttagningar
  1. 16 4
      src/sdk/association/fuseMode.ts

+ 16 - 4
src/sdk/association/fuseMode.ts

@@ -178,18 +178,30 @@ export const activeModel = (status: {
 
   if (model && status.active === oldStatus.active) {
     if (status.showMode === "pano") {
-      model && model.flyInPano();
+      if (model) {
+        model.changeSelect(false)
+        model.flyInPano();
+      }
     } else {
-      model && model.flyOutPano();
+      if (model) {
+        model.flyOutPano();
+        custom.currentModel === status.active && model.changeSelect(true)
+      }
     }
   } else {
     if (oldStatus.showMode !== status.showMode) {
       if (oldStatus.showMode === "pano") {
-        oldModel && oldModel.flyOutPano();
+        if (oldModel) {
+          oldModel.flyOutPano();
+          custom.currentModel === oldStatus.active && oldModel.changeSelect(true)
+        }
       }
     }
     if (status.showMode === "pano") {
-      model && model.flyInPano();
+      if (model) {
+        model.changeSelect(false)
+        model.flyInPano();
+      }
     } else {
       console.log("select");
     }