Skip to content

Commit

Permalink
Added a function for checking if AutoJCM is setup in the DTU file.
Browse files Browse the repository at this point in the history
The last checkin required this.
  • Loading branch information
David-Vodhanel committed Apr 28, 2022
1 parent e2a1d84 commit b8488c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,16 @@ UAnimBlueprint* FDazToUnrealMorphs::CreateBlueprint(UObject* InParent, FName Nam

}

bool FDazToUnrealMorphs::IsAutoJCMImport(TSharedPtr<FJsonObject> JsonObject)
{
const TArray<TSharedPtr<FJsonValue>>* JointLinkList;
if (JsonObject->TryGetArrayField(TEXT("JointLinks"), JointLinkList))
{
return true;
}
return false;
}

void FDazToUnrealMorphs::FakeDualQuarternion(FName MorphName, FName BoneName, EDazMorphAnimInstanceDriver Axis, float MinBend, float MaxBend, USkeletalMesh* Mesh)
{
#if 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class FDazToUnrealMorphs
// Called to create the JCM AnimInstance
static UDazJointControlledMorphAnimInstance* CreateJointControlAnimation(TSharedPtr<FJsonObject> JsonObject, FString Folder, FString CharacterName, USkeleton* Skeleton, USkeletalMesh* Mesh);

// Returns whether the DTU file contains data for AutoJCM
static bool IsAutoJCMImport(TSharedPtr<FJsonObject> JsonObject);

private:

// Internal function for creating the AnimBlueprint for the AnimInstance
Expand Down

0 comments on commit b8488c2

Please sign in to comment.