mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[ue] Closes #2521, fix USpineSkeletonComponent::SetSlotColor
This commit is contained in:
parent
5017bbf2aa
commit
72abb4ead0
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user