|
@@ -550,7 +550,7 @@ export const associationAnimation = (sdk: SDK, el: HTMLDivElement) => {
|
|
|
const am3d = amMap[getAMKey(am)];
|
|
|
if (!am3d || !am3d.am) continue;
|
|
|
|
|
|
- am3d.am.setDefaultPose(am.mat || am3d.am.getModelPose())
|
|
|
+ am3d.am.setDefaultPose && am3d.am.setDefaultPose(am.mat || am3d.am.getModelPose())
|
|
|
// const frame = am3d.am!.addFrame({
|
|
|
// id: uuid(),
|
|
|
// mat: am.mat || am3d.am.getModelPose(),
|
|
@@ -567,7 +567,7 @@ export const associationAnimation = (sdk: SDK, el: HTMLDivElement) => {
|
|
|
watchEffect(() => {
|
|
|
// am.mat && frame.setMat(am.mat);
|
|
|
if (am.mat && am3d.am) {
|
|
|
- am3d.am.setDefaultPose(am.mat)
|
|
|
+ am3d.am.setDefaultPose && am3d.am.setDefaultPose(am.mat)
|
|
|
// console.log(am.mat)
|
|
|
// am3d.am.changePosition(mat.position!)
|
|
|
// am3d.am.changeRotation(mat.rotation!)
|