Skip to content

Commit

Permalink
fix review findings (error handling and so on...)
Browse files Browse the repository at this point in the history
  • Loading branch information
AchimTuran committed Jul 14, 2022
1 parent 14cd2c7 commit eab85c7
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 196 deletions.
4 changes: 2 additions & 2 deletions Content/EditorHooks/BP_IKRigFunctions.uasset
Git LFS file not shown
4 changes: 2 additions & 2 deletions Content/EditorHooks/BP_SkeletonBoneFunctions.uasset
Git LFS file not shown
6 changes: 3 additions & 3 deletions Source/TTToolbox/Private/IKRig_ConstraintBones.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ void UIKRig_ConstraintBones::Initialize(const FIKRigSkeleton& IKRigSkeleton)
//! @todo @ffs sort bone indices
for (auto& constraint : ConstraintBones)
{
int32 constraintBone = IKRigSkeleton.GetBoneIndexFromName(constraint.ConstraintBone);//INDEX_NONE
int32 modifiedBone = IKRigSkeleton.GetBoneIndexFromName(constraint.ModifiedBone);// INDEX_NONE;
int32 constraintBone = IKRigSkeleton.GetBoneIndexFromName(constraint.ConstraintBone);
int32 modifiedBone = IKRigSkeleton.GetBoneIndexFromName(constraint.ModifiedBone);

if (constraintBone == INDEX_NONE)
{
Expand All @@ -60,7 +60,7 @@ void UIKRig_ConstraintBones::Initialize(const FIKRigSkeleton& IKRigSkeleton)

if (errorsOccurred)
{
UE_LOG(LogTemp, Error, TEXT("Some constaint bones could not be set up, no constraining will be done. Please check the error messages above."));
UE_LOG(LogTemp, Error, TEXT("Some constraint bones could not be set up, no constraining will be done. Please check the error messages above."));
m_constraintBones.Empty();
}
}
Expand Down
Loading

0 comments on commit eab85c7

Please sign in to comment.