Vertices Mode: fixed a potential crash when deleting/dissolving vertices

This commit is contained in:
biwa 2020-11-01 23:08:41 +01:00
parent 41e6632b18
commit 601d741b7e

View file

@ -1007,6 +1007,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
General.Map.IsChanged = true;
General.Map.Map.Update();
// Create the blockmap
CreateBlockmap();
// Invoke a new mousemove so that the highlighted item updates
MouseEventArgs e = new MouseEventArgs(MouseButtons.None, 0, (int)mousepos.x, (int)mousepos.y, 0);
OnMouseMove(e);
@ -1086,6 +1089,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
General.Map.Map.Update();
General.Map.IsChanged = true;
// Create the blockmap
CreateBlockmap();
// Invoke a new mousemove so that the highlighted item updates
MouseEventArgs e = new MouseEventArgs(MouseButtons.None, 0, (int)mousepos.x, (int)mousepos.y, 0);
OnMouseMove(e);