|
|
@@ -33,7 +33,7 @@ import { Size } from "@/components/drawing/dec";
|
|
|
import router, { RoutesName } from "@/router";
|
|
|
import { isEdit, isTemploraryID, paths } from "@/store";
|
|
|
import { Color } from "three";
|
|
|
-import { custom, showAMsStack } from "@/env";
|
|
|
+import { custom, getResource, showAMsStack } from "@/env";
|
|
|
|
|
|
export let animationGroup: AnimationGroup;
|
|
|
export const getAMKey = (am: AnimationModel) => am.key || am.id;
|
|
|
@@ -76,6 +76,7 @@ export const addAM = (data: AnimationModel): Promise<AnimationModel3D> => {
|
|
|
};
|
|
|
const am = animationGroup.addAnimationModel({
|
|
|
...data,
|
|
|
+ url: getResource(data.url),
|
|
|
quaAtPath: data.mat?.quaAtPath,
|
|
|
});
|
|
|
am.bus.on("loadDone", () => {
|