Skip to content
Snippets Groups Projects
Commit 9056b6e6 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

improve usage of FacialExpression and facial animation in combination

parent c17b7335
No related branches found
No related tags found
No related merge requests found
...@@ -188,6 +188,14 @@ void UVHFaceAnimation::TickComponent(float DeltaTime, ELevelTick TickType, ...@@ -188,6 +188,14 @@ void UVHFaceAnimation::TickComponent(float DeltaTime, ELevelTick TickType,
} }
else {
if (bResetFaceAfterFinish) {
//in case this is used together with a FacialExpression
//we have to do this, so that the right data is pulled from the
// FacialExpression component every frame (especially before staring that actual animation)
ResetFace();
}
}
} }
bool UVHFaceAnimation::InternalLoadFile(FString FileName) bool UVHFaceAnimation::InternalLoadFile(FString FileName)
......
...@@ -114,7 +114,7 @@ protected: ...@@ -114,7 +114,7 @@ protected:
//custom idle animations can be specified t o be used (played in the DefualtSlot) //custom idle animations can be specified t o be used (played in the DefualtSlot)
//CAUTION: this currently does not work together with walking or pointing //CAUTION: this currently does not work together with walking or pointing
UPROPERTY(EditAnywhere) UPROPERTY(EditAnywhere, BlueprintReadWrite)
TArray<UAnimSequence*> CustomIdleAnimations; TArray<UAnimSequence*> CustomIdleAnimations;
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment