bill пре 1 година
родитељ
комит
fe17fd9964
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 1 1
      src/views/scene/covers/fixPoints.vue
  2. 4 1
      src/views/scene/fixManage.ts

+ 1 - 1
src/views/scene/covers/fixPoints.vue

@@ -79,7 +79,7 @@ const select = (point: FixPoint, onMeasure: boolean = false, onRaw: boolean = fa
   if (!onRaw) {
     fixPoints.value.forEach((item) => {
       console.log("select", toRaw(item) === toRaw(point));
-      selectFix3d(point, toRaw(item) === toRaw(point));
+      selectFix3d(item, toRaw(item) === toRaw(point));
     });
   }
 };

+ 4 - 1
src/views/scene/fixManage.ts

@@ -118,7 +118,9 @@ const fixJoinBase = (data: FixPoint, fix3d: FixPoint3D) => {
 
   const stopBasePosWatch = watch(
     () => {
-      const basePoint = basePoints.value.find((base) => base.id === data.baseId);
+      const basePoint = basePoints.value.find(
+        (base) => base.id === data.baseId
+      );
       return basePoint ? { ...basePoint.pos } : null;
     },
     (basePos) => {
@@ -204,6 +206,7 @@ export const quitMeasure = (data: FixPoint) => {
 export const selectFix3d = (data: FixPoint, selected: boolean) => {
   const fix3d = fix3ds[data.id];
   if (fix3d) {
+    console.error(selected, "select", data.id);
     fix3d.selected(selected);
   }
 };