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 14:33:48 -07:00
parent 5ce14dad2a
commit 2db3f859f7
+1 -1
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 );