bill 4 miesięcy temu
rodzic
commit
f431bc5744
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 1 1
      src/sdk/association/path.ts
  2. 2 1
      src/views/animation/index.vue

+ 1 - 1
src/sdk/association/path.ts

@@ -55,7 +55,7 @@ export const playScenePath = async (
   const node = getPathNode(path)
   // console.error('un', path.points, fuseModels.value)
   if (!node || path.points.some(point => !fuseModels.value.some(am => am.id === point.modelId))) {
-    return Message.error('路径所在模型被隐藏或删除,无法播放');
+    return Message.error('路径所在模型被删除,无法播放');
   }
 
   // showPathsStack.push(ref(false))

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

@@ -187,6 +187,7 @@ watchEffect((onCleanup) => {
 
   am3d.bus.on("transformChanged", updateMat);
 
+  console.error(frameAction.value, am3d);
   switch (frameAction.value) {
     case "translate":
       am3d.enterMoveMode();
@@ -205,7 +206,7 @@ watchEffect((onCleanup) => {
 });
 
 const updateFocus = (am?: AnimationModel) => {
-  if (focusAM.value) {
+  if (focusAM.value && focusAM.value !== am) {
     asyncOper(focusAM.value, (item) => {
       item.changeSelect(false);
     });