Add playAnimation and stopAnimation cases to cloneAction function in interaction-links.ts
This commit is contained in:
@@ -68,6 +68,17 @@ function cloneAction(action: InteractionAction): InteractionAction {
|
|||||||
targetBrushId: action.targetBrushId,
|
targetBrushId: action.targetBrushId,
|
||||||
visible: action.visible
|
visible: action.visible
|
||||||
};
|
};
|
||||||
|
case "playAnimation":
|
||||||
|
return {
|
||||||
|
type: "playAnimation",
|
||||||
|
targetModelInstanceId: action.targetModelInstanceId,
|
||||||
|
clipName: action.clipName
|
||||||
|
};
|
||||||
|
case "stopAnimation":
|
||||||
|
return {
|
||||||
|
type: "stopAnimation",
|
||||||
|
targetModelInstanceId: action.targetModelInstanceId
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user