You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have set the BoneIndex in CreateExtedFromMMDModel() function.
USTRUCT()
struct ENGINE_API FMMD_IKLINK
{
UPROPERTY(EditAnywhere, Category = IK, meta = (ToolTip = "ue4 link bone index"))
int32 BoneIndex; // Link bone index ( for skeleton bone index ,use ik func)
}
USTRUCT()
struct ENGINE_API FMMD_IKInfo
{
UPROPERTY(EditAnywhere, Category = IK, meta = (ToolTip = "ue4 IK bone index"))
int32 IKBoneIndex; // IK target bone index ( use ik func. ref skeleton.)
}
I have missed the another member variable TargetBoneIndex, please handle as same as IKBoneindex.
MMDExtendAsset.h
USTRUCT()
struct FMMD_IKInfo
{
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MMD", meta = (ToolTip = "ue4 target bone index"))
int32 TargetBoneIndex; // IK target bone index ( use ik func. ref skeleton.)
};
I would like to have set the BoneIndex in CreateExtedFromMMDModel() function.
USTRUCT()
struct ENGINE_API FMMD_IKLINK
{
UPROPERTY(EditAnywhere, Category = IK, meta = (ToolTip = "ue4 link bone index"))
int32 BoneIndex; // Link bone index ( for skeleton bone index ,use ik func)
}
USTRUCT()
struct ENGINE_API FMMD_IKInfo
{
UPROPERTY(EditAnywhere, Category = IK, meta = (ToolTip = "ue4 IK bone index"))
int32 IKBoneIndex; // IK target bone index ( use ik func. ref skeleton.)
}
UMMDExtend* UPmxFactory::CreateMMDExtendFromMMDModel(
UObject* InParent,
USkeletalMesh* SkeletalMesh,
MMD4UE4::PmxMeshInfo * PmxMeshInfo
)
{
const FReferenceSkeleton ReferenceSkeleton = SkeletalMesh->Skeleton->GetReferenceSkeleton();
const FName& Name = FName(*SkeletalMesh->GetName());
...
addMMDIkInfo.IKBoneIndex = ReferenceSkeleton.FindBoneIndex(addMMDIkInfo.IKBoneName);
for (int ikInfoID = 0; ikInfoID < tempPmxIKPtr->LinkNum; ++ikInfoID)
{
addMMDIkInfo.ikLinkList[ikInfoID].BoneIndex = ReferenceSkeleton.FindBoneIndex(addMMDIkInfo.ikLinkList[ikInfoID].BoneName);
...
}
...
}
The text was updated successfully, but these errors were encountered: