Skip to content

Commit

Permalink
[共通] fix #1116
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Nov 13, 2023
1 parent d0deedb commit 11a69d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Siv3D/src/Siv3D/Subdivision2D/SivSubdivision2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ namespace s3d
if (loc != Subdivision2DPointLocation::OnEdge
&& loc != Subdivision2DPointLocation::Inside)
{
if (nearestPt && (loc == Subdivision2DPointLocation::Vertex))
{
*nearestPt = m_internal.vertices[vertex].pt;
}

return vertex;
}

Expand Down

0 comments on commit 11a69d9

Please sign in to comment.