Skip to content
Snippets Groups Projects
Commit 7246135a authored by Pin-Hua Ho's avatar Pin-Hua Ho
Browse files

Move face montage slot from body to face ABP / added bodyType check in...

Move face montage slot from body to face ABP / added bodyType check in PlayFacialAnimation so it only works for metahuman
parent b3a6f26a
Branches feature/MH-audio2face
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -182,6 +182,7 @@ bool AVirtualHuman::SupportsMorphs()
void AVirtualHuman::PlayFacialAnimationMontage(UAnimMontage* InMontage, float InPlayRate, FName StartSectionName)
{
if (BodyType != EBodyType::MetaHuman) {
UVHAnimInstance* BodyAnimInstance = GetBodyAnimInstance();
if (BodyAnimInstance)
{
......@@ -196,6 +197,7 @@ void AVirtualHuman::PlayFacialAnimationMontage(UAnimMontage* InMontage, float In
}
}
}
}
bool AVirtualHuman::ForcePlayNewIdleAnimation()
......
......@@ -100,7 +100,7 @@ public:
/**
* Facial animation play entry
* Play a facial animation montage on face mesh. (Only for MetaHuman)
*/
UFUNCTION(BlueprintCallable)
virtual void PlayFacialAnimationMontage(UAnimMontage* InMontage, float InPlayRate = 1.0f, FName StartSectionName = NAME_None);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment