bill hai 8 meses
pai
achega
90e928f561
Modificáronse 2 ficheiros con 4 adicións e 7 borrados
  1. 1 1
      src/lib/board/4dmap.js
  2. 3 6
      src/view/pano/pano.vue

+ 1 - 1
src/lib/board/4dmap.js

@@ -13451,7 +13451,7 @@ class Gu extends Dt {
   }
   get editPolygonNdx() {
     const t = this.parent;
-    return t.status.editPolygonId ? ii(
+    return t?.status?.editPolygonId ? ii(
       t.attrib,
       t.status.editPolygonId
     ).map(({ id: i }) => i).indexOf(this.attrib.id) : -1;

+ 3 - 6
src/view/pano/pano.vue

@@ -162,7 +162,8 @@ const photo = async () => {
   loading.value = true;
   const bigImages = getPointPano(
     point.value,
-    [SceneType.CLUNT, SceneType.MESH].includes(point.value.sceneType),
+    // [SceneType.CLUNT, SceneType.MESH].includes(point.value.sceneType),
+    true,
     false
   );
   if (
@@ -256,11 +257,7 @@ onMounted(() => {
     if (point.value) {
       // console.log(point.value.sceneType);
       // SceneType.VR
-      const yaw =
-        point.value.sceneType === SceneType.MESH ||
-        point.value.sceneType === SceneType.CLUNT
-          ? 90
-          : -90;
+      const yaw = currentNdx.value === 0 ? 90 : -90;
       pano.setYaw(glMatrix.toRadian(yaw));
     }
   });