mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-07 08:21:10 +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
|
//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,
|
//(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)
|
//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;
|
string lumpname = group.Key;
|
||||||
if(lumpname == CONFIG_MAP_HEADER) lumpname = mapname;
|
if(lumpname == CONFIG_MAP_HEADER) lumpname = mapname;
|
||||||
|
|
Loading…
Reference in a new issue