We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88c492 commit a9ada64Copy full SHA for a9ada64
src/hammeraddons/unify_fgd.py
@@ -11,6 +11,7 @@
11
import argparse
12
import itertools
13
import sys
14
+import re
15
16
from srctools import fgd
17
from srctools.fgd import (
@@ -1179,6 +1180,12 @@ def action_export(
1179
1180
for (mask, name, default, tags) in value.flags_list
1181
if '-ENGINE' not in tags and '!ENGINE' not in tags
1182
]
1183
+ if (
1184
+ isinstance(value, KVDef) and value.editor_only
1185
+ and re.fullmatch("-{4,}", value.disp_name) is not None
1186
+ ):
1187
+ # It's a divider, set a specific length, or blank it in engine mode.
1188
+ value.disp_name = '-' if engine_mode else ('-' * 80)
1189
1190
# Check if this is a shared property among all ents,
1191
# and if so skip exporting.
0 commit comments