bill 8 月之前
父節點
當前提交
1cfcacafd4
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/components/path/sign.vue

+ 3 - 1
src/components/path/sign.vue

@@ -58,8 +58,9 @@ const show = computed(
     toCameraDistance.value <= Math.pow(props.path.visibilityRange, 2)
 );
 watchEffect(() => {
+  console.log(props.path.globalVisibility, toCameraDistance.value);
   console.error("globalVisibility", show.value);
-  path.visibility(show.value);
+  // path.visibility(show.value);
 });
 
 let currentPoints = props.path.points;
@@ -71,6 +72,7 @@ path.bus.on("changePoints", (points) => {
     position: { ...p.position },
     modelId: p.modelId,
   }));
+  console.log("updatePoints", currentPoints);
   emit("updatePoints", currentPoints);
 });
 watchEffect(() => {