You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Adding a public member to USkeletalMesh class is now prohibed since it can break asynchronous operations that will be added next to this submit. #rb danny.couture #jira UEENT-3936 #rnx [CL 14812920 by Alexis Matte in ue5-main branch]
19 lines
804 B
C++
19 lines
804 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "AnimCustomInstanceHelper.h"
|
|
|
|
/////////////////////////////////////////////////////
|
|
// FAnimCustomInstanceHelper
|
|
/////////////////////////////////////////////////////
|
|
|
|
|
|
bool FAnimCustomInstanceHelper::ShouldCreateCustomInstancePlayer(const USkeletalMeshComponent* SkeletalMeshComponent)
|
|
{
|
|
const USkeletalMesh* SkeletalMesh = SkeletalMeshComponent->SkeletalMesh;
|
|
// create proper anim instance to animate
|
|
UAnimInstance* AnimInstance = SkeletalMeshComponent->GetAnimInstance();
|
|
|
|
return (AnimInstance == nullptr || SkeletalMeshComponent->GetAnimationMode() != EAnimationMode::AnimationBlueprint ||
|
|
AnimInstance->GetClass() != SkeletalMeshComponent->AnimClass || !SkeletalMesh->GetSkeleton()->IsCompatible(AnimInstance->CurrentSkeleton));
|
|
} |