mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-01-31 05:00:34 +00:00
Clear out non-required lumps before nodebuilding to prevent outdated data from being used
This commit is contained in:
parent
130101a227
commit
ad52e5de44
1 changed files with 4 additions and 1 deletions
|
@ -1366,7 +1366,10 @@ namespace CodeImp.DoomBuilder
|
|||
//this lump well be recreated by a nodebuilder when saving the map
|
||||
//(or it won't be if the new map format or nodebuilder doesn't require / build this lump,
|
||||
//so it will just stay there, possibly messing things up)
|
||||
if(group.Value.NodeBuild && (!glnodesonly || group.Key.ToUpperInvariant().StartsWith("GL_"))) continue;
|
||||
if(group.Value.NodeBuild && (!glnodesonly || group.Key.ToUpperInvariant().StartsWith("GL_"))) continue;
|
||||
|
||||
//Skip lumps that aren't required.
|
||||
if (!group.Value.Required) continue;
|
||||
|
||||
string lumpname = group.Key;
|
||||
if(lumpname == CONFIG_MAP_HEADER) lumpname = mapname;
|
||||
|
|
Loading…
Reference in a new issue