PNS: Preserve nearest vertex when dragging in shove mode
This commit is contained in:
parent
55394f343d
commit
3adff647a7
|
@ -1042,6 +1042,9 @@ bool OPTIMIZER::Optimize( LINE* aLine, int aEffortLevel, NODE* aWorld, const VEC
|
||||||
opt.SetEffortLevel( aEffortLevel );
|
opt.SetEffortLevel( aEffortLevel );
|
||||||
opt.SetCollisionMask( -1 );
|
opt.SetCollisionMask( -1 );
|
||||||
|
|
||||||
|
if( aEffortLevel & OPTIMIZER::PRESERVE_VERTEX )
|
||||||
|
opt.SetPreserveVertex( aV );
|
||||||
|
|
||||||
return opt.Optimize( aLine );
|
return opt.Optimize( aLine );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue