mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[ue] Fix compilation for UE 5+, closes #2328
This commit is contained in:
parent
b309eac3ff
commit
d67362b0ed
@ -318,9 +318,9 @@ SkeletonData *USpineSkeletonDataAsset::GetSkeletonData(Atlas *Atlas) {
|
||||
void USpineSkeletonDataAsset::SetMixes(AnimationStateData *animationStateData) {
|
||||
for (auto &data : MixData) {
|
||||
if (!data.From.IsEmpty() && !data.To.IsEmpty()) {
|
||||
const char *fromChar = TCHAR_TO_UTF8(*data.From);
|
||||
const char *toChar = TCHAR_TO_UTF8(*data.To);
|
||||
animationStateData->setMix(fromChar, toChar, data.Mix);
|
||||
std::string fromChar = TCHAR_TO_UTF8(*data.From);
|
||||
std::string toChar = TCHAR_TO_UTF8(*data.To);
|
||||
animationStateData->setMix(fromChar.c_str(), toChar.c_str(), data.Mix);
|
||||
}
|
||||
}
|
||||
animationStateData->setDefaultMix(DefaultMix);
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
#include "Runtime/UMG/Public/UMG.h"
|
||||
#include "Runtime/UMG/Public/UMGStyle.h"
|
||||
#include "SpineSkeletonDataAsset.h"
|
||||
#include "SpineSkeletonAnimationComponent.h"
|
||||
#include "spine/spine.h"
|
||||
#include "SpineWidget.generated.h"
|
||||
// clang-format on
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user