mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Sector Edit form, Vertex Edit form: fixed another crash related to realtime update...
This commit is contained in:
parent
ecbf9fd743
commit
6d717a06ea
4 changed files with 4 additions and 0 deletions
|
@ -626,6 +626,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
//mxd. Show realtime vertex edit dialog
|
||||
General.Interface.OnEditFormValuesChanged += new EventHandler(sectorEditForm_OnValuesChanged);
|
||||
General.Interface.ShowEditSectors(selected);
|
||||
General.Interface.OnEditFormValuesChanged -= sectorEditForm_OnValuesChanged;
|
||||
|
||||
// When a single sector was selected, deselect it now
|
||||
if(selected.Count == 1)
|
||||
|
|
|
@ -407,6 +407,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
//mxd. Show realtime vertex edit dialog
|
||||
General.Interface.OnEditFormValuesChanged += new EventHandler(vertexEditForm_OnValuesChanged);
|
||||
General.Interface.ShowEditVertices(selected);
|
||||
General.Interface.OnEditFormValuesChanged -= vertexEditForm_OnValuesChanged;
|
||||
|
||||
// When a single vertex was selected, deselect it now
|
||||
if(selected.Count == 1) General.Map.Map.ClearSelectedVertices();
|
||||
|
|
|
@ -651,6 +651,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
General.Interface.OnEditFormValuesChanged += new System.EventHandler(Interface_OnEditFormValuesChanged);
|
||||
General.Interface.ShowEditSectors(sectors);
|
||||
General.Interface.OnEditFormValuesChanged -= Interface_OnEditFormValuesChanged;
|
||||
|
||||
updateList.Clear();
|
||||
updateList = null;
|
||||
|
|
|
@ -306,6 +306,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
|
||||
General.Interface.OnEditFormValuesChanged += new System.EventHandler(Interface_OnEditFormValuesChanged);
|
||||
General.Interface.ShowEditVertices(verts, false);
|
||||
General.Interface.OnEditFormValuesChanged -= Interface_OnEditFormValuesChanged;
|
||||
|
||||
updateList.Clear();
|
||||
updateList = null;
|
||||
|
|
Loading…
Reference in a new issue