Clothings lots config rework
This commit is contained in:
@@ -74,22 +74,22 @@ void UExposeBodyPartRestriction::UnequipClothing(const UClothingItemInstance* Cl
|
||||
|
||||
void UExposeBodyPartRestriction::CheckClothing()
|
||||
{
|
||||
if (!Player || !Player->ClothingManager || Player->ClothingManager->ClothingSlots.IsEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const FClothingSlotData* TargetClothingItem = Player->ClothingManager->ClothingSlots.FindByPredicate([this](const FClothingSlotData& ClothingSlot)
|
||||
{
|
||||
if (ClothingSlot.ClothingItemInstance)
|
||||
{
|
||||
return true; // TODO: Add exposed body part resolution
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
if (!TargetClothingItem)
|
||||
{
|
||||
Complete();
|
||||
}
|
||||
// if (!Player || !Player->ClothingManager || Player->ClothingManager->ClothingSlots.IsEmpty())
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// const FClothingSlotData* TargetClothingItem = Player->ClothingManager->ClothingSlots.FindByPredicate([this](const FClothingSlotData& ClothingSlot)
|
||||
// {
|
||||
// if (ClothingSlot.ClothingItemInstance)
|
||||
// {
|
||||
// return true; // TODO: Add exposed body part resolution
|
||||
// }
|
||||
//
|
||||
// return false;
|
||||
// });
|
||||
// if (!TargetClothingItem)
|
||||
// {
|
||||
// Complete();
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user