Nodes Viewer Mode: the mode will not engage anymore if ZNODES are found, do to ZDBSP reordering the vertices when rebuilding the nodes. Addresses #659

This commit is contained in:
biwa 2022-03-05 17:26:16 +01:00
parent f8bb87e143
commit cb24e346ef

View file

@ -839,6 +839,14 @@ namespace CodeImp.DoomBuilder.Plugins.NodesViewer
//mxd
if(haveZnodes)
{
// For whatever reason ZDBSP reorders the vertices when building the nodes, so if the map was modified in UDB
// and then the Nodes Viewer is engaged the vertices in the ZNODES are not the same, resulting in an incorrect
// view or even a crash.
// See https://github.com/jewalky/UltimateDoomBuilder/issues/659
General.Interface.DisplayStatus(StatusType.Warning, "ZNODES are currently not supported.");
General.Editing.CancelMode();
return;
General.Interface.DisplayStatus(StatusType.Busy, "Reading map nodes...");
if(!LoadZNodes())
{