From e81139287af2deb2d12e27ef70b6705fe51d4db6 Mon Sep 17 00:00:00 2001 From: ozxybox Date: Mon, 11 Nov 2024 14:33:49 -0600 Subject: [PATCH] Allow sorted_ents to process entities with string bases --- src/srctools/fgd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/srctools/fgd.py b/src/srctools/fgd.py index 1286ae14..d860a860 100644 --- a/src/srctools/fgd.py +++ b/src/srctools/fgd.py @@ -2122,9 +2122,7 @@ def sorted_ents(self) -> Iterator[EntityDef]: for ent in todo: ready = True for base in ent.bases: - if isinstance(base, str): - raise ValueError(f'Unevaluated base: {base} in {ent.classname}!') - if base not in done: + if isinstance(base, EntityDef) and base not in done: # Base not done yet, we need to defer this. deferred.add(ent) # If the base isn't in any of our sets, it's one