From 53d390aac08e4e8e7d75410d873bfdb4b135e63d Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Sun, 30 Jul 2023 14:06:28 -0500 Subject: [PATCH] simplify postcompiler code --- utils/build_maps.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/build_maps.py b/utils/build_maps.py index 42fc6f968..e8e59568c 100644 --- a/utils/build_maps.py +++ b/utils/build_maps.py @@ -16,7 +16,7 @@ def __init__(self, name, radius_override="2500", buildcubemaps="1", vbsp=None, v self.vbsp = vbsp if vbsp is not None else ["-alldetail"] self.vvis = vvis if vvis is not None else ["-radius_override", radius_override] self.vrad = vrad if vrad is not None else ["-final", "-textureshadows", "-StaticPropLighting", "-StaticPropPolys"] - self.postcompiler = postcompiler if postcompiler is not None else ["--propcombine", "--dumpgroups"] + self.postcompiler = postcompiler if postcompiler is not None else ["--propcombine"] vrad_notextureshadows = ["-final", "-StaticPropLighting", "-StaticPropPolys"] @@ -154,8 +154,7 @@ def __init__(self, name, radius_override="2500", buildcubemaps="1", vbsp=None, v for i, mapinfo in enumerate(VMFs): name = mapsrc + "/" + mapinfo.name check_call([vbsp] + mapinfo.vbsp + ["-game", moddir, name]) - if mapinfo.postcompiler is not None: - check_call([postcompiler] + mapinfo.postcompiler + ["-game", moddir, name]) + check_call([postcompiler] + mapinfo.postcompiler + ["-game", moddir, name]) check_call([vvis] + mapinfo.vvis + ["-game", moddir, name]) check_call([vrad, "-low"] + mapinfo.vrad + ["-game", moddir, name]) try: