mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 17:48:45 +08:00
[ue4] Fix offset calculation of widgets, closes #1914
This commit is contained in:
parent
fbfbb9a3f2
commit
2824e22846
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user