Skip to content

Commit

Permalink
simplify postcompiler code
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jul 30, 2023
1 parent 137a813 commit 53d390a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/build_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 53d390a

Please sign in to comment.