Fixed an issue in Edit Selection Mode that could cause Out Of Memory exceptions with vertices that are slightly off grid in the 32 bit version

This commit is contained in:
biwa 2020-05-16 13:22:33 +02:00
parent 4fd976feb9
commit fd41361f6d

View file

@ -1725,6 +1725,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
//mxd. We'll need sidedefs marked by StitchGeometry, not all sidedefs from selection...
General.Map.Map.ClearMarkedSidedefs(false);
// Snap to map format accuracy. We need to do that before stitching geometry because vertices that are very very slightly off the grid (like 0.00001) can
// cause problems with BlockMapGetBlockCoordinates in the 32bit version
General.Map.Map.SnapAllToAccuracy(General.Map.UDMF && usepreciseposition);
// Stitch geometry
General.Map.Map.StitchGeometry(General.Settings.MergeGeometryMode);