From 0db28c0a464887ae8d0d7c0b378d3d96ddee014a Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 21 Apr 2022 14:05:20 +0200 Subject: [PATCH] [ue4] Fix UE5 compilation errors. Closes #2071 --- .../Source/SpinePlugin/Private/SSpineWidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp index 73367b500a..42b996f04d 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp @@ -69,7 +69,12 @@ void SSpineWidget::SetData(USpineWidget *Widget) { skeleton->setToSetupPose(); skeleton->updateWorldTransform(); Vector scratchBuffer; - skeleton->getBounds(this->boundsMin.X, this->boundsMin.Y, this->boundsSize.X, this->boundsSize.Y, scratchBuffer); + float x, y, w, h; + skeleton->getBounds(x, y, w, h, scratchBuffer); + boundsMin.X = x; + boundsMin.Y = y; + boundsSize.X = w; + boundsSize.Y = h; } }