[ue] Closes #2521, fix USpineSkeletonComponent::SetSlotColor

This commit is contained in:
Mario Zechner 2024-05-14 11:41:05 +02:00
parent 5017bbf2aa
commit 72abb4ead0

View File

@ -254,7 +254,7 @@ void USpineSkeletonComponent::SetSlotColor(const FString SlotName, const FColor
if (skeleton) {
Slot *slot = skeleton->findSlot(TCHAR_TO_UTF8(*SlotName));
if (slot) {
slot->getColor().set(color.R, color.B, color.G, color.A);
slot->getColor().set(color.R / 255.f, color.G / 255.f, color.B / 255.f, color.A / 255.f);
}
}
}