GRID_HELPER: Show snap indicator when would snap

This shows the snap indicator even when the item we are snapping to
occurs on a grid point, giving the user an indication that the point is
correctly connected.
This commit is contained in:
Seth Hillbrand 2018-10-05 04:55:50 -07:00
parent 5ce14dad2a
commit 2db3f859f7
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ VECTOR2I GRID_HELPER::BestSnapAnchor( const VECTOR2I& aOrigin, const LSET& aLaye
{
double snapDist = nearest->Distance( aOrigin );
if( nearest && snapDist < gridDist )
if( nearest && snapDist <= gridDist )
{
m_viewSnapPoint.SetPosition( nearest->pos );
m_frame->GetGalCanvas()->GetView()->SetVisible( &m_viewSnapPoint, true );