Core/AreaTriggers: Fix polygon areatriggers never building their vertices when areatrigger spawn orientation is 0 (#32126)

Signed-off-by: luis <[email protected]>
This commit is contained in:
F03SD
2026-11-09 21:32:47 -03:00
committed by luis
parent b127e4aecb
commit 59479e2ce4
@@ -1217,7 +1217,7 @@ void AreaTrigger::UpdatePolygonVertices()
UF::AreaTriggerPolygon const* shape = m_areaTriggerData->ShapeData.Get<UF::AreaTriggerPolygon>();
// No need to recalculate, orientation didn't change
if (_verticesUpdatePreviousRotation == _rotation && shape->VerticesTarget.empty())
if (!_polygonVertices.empty() && _verticesUpdatePreviousRotation == _rotation && shape->VerticesTarget.empty())
return;
_polygonVertices.assign(shape->Vertices.begin(), shape->Vertices.end());