Skip to content

Commit

Permalink
Using Convert to Epic Skeleton will apply Fix Twist Bones
Browse files Browse the repository at this point in the history
Using Convert to Epic Skeleton will apply Fix Twist Bones
  • Loading branch information
David-Vodhanel committed Dec 27, 2024
1 parent f124903 commit b191325
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,12 +568,13 @@ UObject* FDazToUnrealModule::ImportFromDaz(TSharedPtr<FJsonObject> JsonObject, c
ImportData.AssetType = AssetType;
ImportData.CharacterTypeName = AssetID;
JsonObject->TryGetBoolField(TEXT("CreateUniqueSkeleton"), ImportData.bCreateUniqueSkeleton);
JsonObject->TryGetBoolField(TEXT("FixTwistBones"), ImportData.bFixTwistBones);
JsonObject->TryGetBoolField(TEXT("ConvertToEpicSkeleton"), ImportData.bConvertToEpicSkeleton);
if (ImportData.bConvertToEpicSkeleton)
{
ImportData.bCreateUniqueSkeleton = true;
ImportData.bFixTwistBones = true;
}
JsonObject->TryGetBoolField(TEXT("FixTwistBones"), ImportData.bFixTwistBones);
if (!JsonObject->TryGetBoolField(TEXT("FaceCharacterRight"), ImportData.bFaceCharacterRight))
{
ImportData.bFaceCharacterRight = CachedSettings->ZeroRootRotationOnImport;
Expand Down

0 comments on commit b191325

Please sign in to comment.