bill 3 tháng trước cách đây
mục cha
commit
78dceabcf0
3 tập tin đã thay đổi với 1266 bổ sung952 xóa
  1. 1263 950
      pnpm-lock.yaml
  2. 1 1
      src/api/animation.ts
  3. 2 1
      src/sdk/association/path.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1263 - 950
pnpm-lock.yaml


+ 1 - 1
src/api/animation.ts

@@ -92,7 +92,7 @@ const serviceToLocal = (serviceAM: ServiceAnimationModel): AnimationModel => ({
   actions: JSON.parse(serviceAM.actions),
   subtitles: JSON.parse(serviceAM.subtitles),
   paths: JSON.parse(serviceAM.paths),
-  mat: serviceAM.mat && JSON.parse(serviceAM.mat) 
+  mat: serviceAM.mat && JSON.parse(serviceAM.mat)
 });
 
 const localToService = (am: AnimationModel): ServiceAnimationModel => ({

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

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