瀏覽代碼

修改导览

wangfumin 3 月之前
父節點
當前提交
f344c5fb81
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/sdk/association/path.ts

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

@@ -54,7 +54,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))) {
+  if (!node || path.points.some(point => point.modelId !== '-100' && !fuseModels.value.some(am => am.id === point.modelId))) {
     return Message.error('路径所在模型被删除,无法播放');
   }