Updated scp.py

*Updated scp.py to not ignore MiscGroups
This commit is contained in:
izawartka 2025-07-21 18:54:36 +02:00
parent 4855787e23
commit 884652ac8f

View File

@ -5,7 +5,7 @@ import sys
#
# [ TD2 SCENERY PROCESSOR ]
# by masuo
# v1.6
# v1.7
#
BAD_WORDS = ['Fence', 'TerrainPoint', 'Wires']
@ -16,7 +16,7 @@ def should_exclude(line: str) -> bool:
if line.startswith(word):
return True
if line.startswith("Misc"):
if line.startswith("Misc") and not line.startswith("MiscGroup"):
if re.match(MISC_REGEX, line):
return True