PNS: Preserve nearest vertex when dragging in shove mode

This commit is contained in:
Jon Evans 2020-12-28 19:44:39 -05:00
parent 55394f343d
commit 3adff647a7
1 changed files with 3 additions and 0 deletions

View File

@ -1042,6 +1042,9 @@ bool OPTIMIZER::Optimize( LINE* aLine, int aEffortLevel, NODE* aWorld, const VEC
opt.SetEffortLevel( aEffortLevel );
opt.SetCollisionMask( -1 );
if( aEffortLevel & OPTIMIZER::PRESERVE_VERTEX )
opt.SetPreserveVertex( aV );
return opt.Optimize( aLine );
}