소스 검색

Merge branch 'v1.2.0-ga' of http://192.168.0.115:3000/bill/fuse-code into v1.2.0-ga

xzw 5 달 전
부모
커밋
e8c1e0d73f
2개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/components/drawing-time/time.vue
  2. 9 2
      src/views/animation/index.vue

+ 2 - 2
src/components/drawing-time/time.vue

@@ -1,10 +1,11 @@
 <template>
   <v-group v-if="shapeConfig">
     <v-line v-for="line in shapeConfig.lines" :config="line" />
+    <v-text v-for="texConfig in shapeConfig.texts" :config="{ ...texConfig }" />
     <v-line
       :config="{
         points: [0, 0, size?.width, 0],
-        strokeWidth: 25,
+        strokeWidth: 30,
         stroke: '#fff',
         opacity: 0,
         ...invConfig,
@@ -12,7 +13,6 @@
       @click="clickHandler"
       ref="line"
     />
-    <v-text v-for="texConfig in shapeConfig.texts" :config="{ ...texConfig }" />
     <slot />
   </v-group>
 </template>

+ 9 - 2
src/views/animation/index.vue

@@ -91,7 +91,13 @@ watchEffect((onCleanup) => {
   const am3d = amM.value.am;
   if (!am3d) return;
   const updateMat = () => {
-    frame.mat = JSON.parse(JSON.stringify(am3d.getModelPose()));
+    if (
+      activeAttrib.value?.key === "frames" &&
+      focusAM.value!.frames[activeAttrib.value.ndx] === frame
+    ) {
+      console.log("setMat");
+      frame.mat = JSON.parse(JSON.stringify(am3d.getModelPose()));
+    }
   };
 
   am3d.bus.on("transformChanged", updateMat);
@@ -160,7 +166,8 @@ watch(activeAttrib, (_a, _b, onCleanup) => {
   onCleanup(
     watch(
       () => [currentTime.value, cur.time, cur.time + (cur.duration || 0)],
-      updateFocus
+      updateFocus,
+      { flush: "sync" }
     )
   );
 });