Browse Source

新增路线判断

wangfumin 1 week ago
parent
commit
81527a04be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/sdk/association/path.ts

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

@@ -53,8 +53,8 @@ export const playScenePath = async (
   forceFull = false,
 ) => {
   const node = getPathNode(path)
-  // console.error('un', path.points, fuseModels.value)
-  if (!node || path.points.some(point => point.modelId !== '-100' && !fuseModels.value.some(am => am.id === point.modelId))) {
+  console.error('un', !node, node, path.points, fuseModels.value, path)
+  if (!node || path.points.some(point => point.modelId !== '-100' && !fuseModels.value.some(am => am.id === point.modelId)) && !path.isAnimate) {
     return Message.error('路径所在模型被删除,无法播放');
   }