Sectors Mode: potentially fixed some crashes related to determining thing sectors

This commit is contained in:
biwa 2021-04-22 16:12:14 +02:00
parent a790f224db
commit 547aec7541

View file

@ -2018,6 +2018,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Recreate the blockmap since it shouldn't include the deleted sectors anymore
CreateBlockmap();
// Clear the cache of things that already got their sector determined
determinedsectorthings = new HashSet<Thing>();
}
if(selectedthings.Count > 0 || selectedsectors.Count > 0)
@ -2077,6 +2080,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Recreate the blockmap
CreateBlockmap();
// Clear the cache of things that already got their sector determined
determinedsectorthings = new HashSet<Thing>();
//mxd. Update
UpdateOverlaySurfaces();
UpdateEffectLabels();
@ -2122,6 +2128,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Recreate the blockmap
CreateBlockmap();
// Clear the cache of things that already got their sector determined
determinedsectorthings = new HashSet<Thing>();
//mxd. Update
UpdateOverlaySurfaces();
UpdateEffectLabels();