bill 4 months ago
parent
commit
47964a5ae9
2 changed files with 3 additions and 1 deletions
  1. 1 0
      src/sdk/sdk.ts
  2. 2 1
      src/views/animation/index.vue

+ 1 - 0
src/sdk/sdk.ts

@@ -438,6 +438,7 @@ export type AnimationModel3D = {
     loadDone: void
     changeSelect: boolean;
     transformChanged: {
+      byControl: boolean
       position?: SceneLocalPos;
       scale?: number;
       rotation?: SceneLocalPos;

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

@@ -105,7 +105,8 @@ watchEffect((onCleanup) => {
   const am3d = amM.value.am;
   if (!am3d) return;
 
-  const updateMat = () => {
+  const updateMat = (data: any) => {
+    if (!data.byControl) return;
     if (activeAttrib.value?.key === "frames") {
       const frame = focusAM.value!.frames[activeAttrib.value.ndx];
       frame.mat = JSON.parse(JSON.stringify(am3d.getModelPose()));