Przeglądaj źródła

缺陷#24 图元残留已经删除的动画配置

Wind-Breaker1 1 rok temu
rodzic
commit
562e5b035f
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      src/views/components/PenAnimates.vue

+ 9 - 0
src/views/components/PenAnimates.vue

@@ -438,6 +438,15 @@ const delAnimate = (i: number) => {
     meta2d.stopAnimate(props.pen.id);
     isPlaying.value = undefined;
   }
+  if(props.pen.animate) {
+    meta2d.setValue({
+      id:props.pen.id,
+      animate:undefined,
+      animateCycle:undefined,
+      autoPlay:undefined,
+      frames:[]
+    })
+  }
   props.pen.animations.splice(i, 1);
   animate.value = undefined;
 };