Add playAnimation and stopAnimation cases to cloneAction function in interaction-links.ts

This commit is contained in:
2026-03-31 23:59:04 +02:00
parent 580826b495
commit 8491dce860

View File

@@ -68,6 +68,17 @@ function cloneAction(action: InteractionAction): InteractionAction {
targetBrushId: action.targetBrushId,
visible: action.visible
};
case "playAnimation":
return {
type: "playAnimation",
targetModelInstanceId: action.targetModelInstanceId,
clipName: action.clipName
};
case "stopAnimation":
return {
type: "stopAnimation",
targetModelInstanceId: action.targetModelInstanceId
};
}
}