Slightly walk back a copy slope "fix" to prevent DSZ2 from freezing the editor

This commit is contained in:
spherallic 2023-05-01 18:30:22 +02:00
parent d79a379b3b
commit 65604bab03

View file

@ -155,15 +155,17 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
}
// sphere: This part causes DSZ2 to freeze ZB completely in Visual Mode.
// TODO: figure out why, maybe fix it
// Do it in 2 steps, because SectorData.Reset() may change SectorData.UpdateAlso collection...
foreach(SectorData sd in toupdate)
{
// Update PlaneCopySlope Effect...
sd.Reset(false);
// Update outer sides...
UpdateSectorSides(sd.Sector);
}
//foreach(SectorData sd in toupdate)
//{
// // Update PlaneCopySlope Effect...
// sd.Reset(false);
//
// // Update outer sides...
// UpdateSectorSides(sd.Sector);
//}
}
}