From 2824e22846e90bf0c0aa51a974dd9bea51f72ac1 Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 23 Jul 2021 16:01:17 +0200 Subject: [PATCH] [ue4] Fix offset calculation of widgets, closes #1914 --- .../SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 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 246b6e553c..4c639e7359 100644 --- a/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp +++ b/spine-ue4/Plugins/SpinePlugin/Source/SpinePlugin/Private/SSpineWidget.cpp @@ -196,7 +196,7 @@ void SSpineWidget::Flush(int32 LayerId, FSlateWindowElementList &OutDrawElements self->renderData.VertexData.SetNumUninitialized(Vertices.Num()); FSlateVertex *vertexData = (FSlateVertex *) renderData.VertexData.GetData(); - FVector2D offset = AllottedGeometry.AbsolutePosition; + FVector2D offset = AllottedGeometry.GetAbsolutePositionAtCoordinates(FVector2D(0.0f, 0.0f)); FColor white = FColor(0xffffffff); const FSlateRenderTransform &Transform = AllottedGeometry.GetAccumulatedRenderTransform();