Curve Linedefs Mode: fixed a problem where the curve would not flip when being dragged with the mouse

This commit is contained in:
biwa 2021-04-01 21:44:49 +02:00
parent 7dd0a0a4af
commit c748209eba

View file

@ -502,7 +502,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
if(panel.Angle == 0 && (Math.Sign(offset - prevoffset) != Math.Sign(panel.Distance)))
{
// Set new distance without triggering the update...
panel.SetValues(panel.Vertices, -panel.Distance, panel.Angle, panel.FixedCurve, panel.FixedCurveOutwards);
panel.SetValues(panel.Vertices, -panel.Distance, panel.Angle, panel.FixedCurve, !panel.FixedCurveOutwards);
// Recalculate affected values...
perpendicular *= -1;