no more seperate undo level for stitched geometry (since the user can easily choose stitching during drag/draw)

This commit is contained in:
codeimp 2008-05-08 12:09:14 +00:00
parent 51f57471c7
commit 7c57f39a13

View file

@ -736,9 +736,6 @@ namespace CodeImp.DoomBuilder.Map
movingverts = General.Map.Map.GetMarkedVertices(true);
fixedverts = General.Map.Map.GetMarkedVertices(false);
// Make undo for the stitching
stitchundo = General.Map.UndoRedo.CreateUndo("stitch geometry", UndoGroup.None, 0);
// Find lines that moved during the drag
movinglines = LinedefsFromMarkedVertices(false, true, true);
@ -770,9 +767,6 @@ namespace CodeImp.DoomBuilder.Map
// Join overlapping lines
stitches += MapSet.JoinOverlappingLines(movinglines);
// No stitching done? then withdraw undo
if(stitches == 0) General.Map.UndoRedo.WithdrawUndo(stitchundo);
return stitches;
}