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:
parent
5ce14dad2a
commit
2db3f859f7
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue