From 7cac44daa5cee2ec8be4d466cc6a5825afb6b847 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 6 Jul 2023 19:22:08 -0400 Subject: [PATCH] Ensure that modifiers in the pool don't get attached to SceneObjects. --- korman/exporter/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/exporter/manager.py b/korman/exporter/manager.py index f404075..1001511 100644 --- a/korman/exporter/manager.py +++ b/korman/exporter/manager.py @@ -138,9 +138,9 @@ class ExportManager: so.draw = pl.key elif isinstance(pl, plSimulationInterface): so.sim = pl.key - else: + elif pl.ClassIndex() not in _pool_types: so.addInterface(pl.key) - elif isinstance(pl, plModifier): + elif isinstance(pl, plModifier) and pl.ClassIndex() not in _pool_types: so.addModifier(pl.key) # And we're done!