From 5fd9564e93d2bc2a875308f11de3f4139225ad45 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 2 Oct 2019 20:10:54 -0400 Subject: [PATCH] Fix the previous fix. `pClass` is a class, not an object instance... --- 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 a680921..7df6385 100644 --- a/korman/exporter/manager.py +++ b/korman/exporter/manager.py @@ -215,12 +215,12 @@ class ExportManager: key = self._keys.get((location, pClass, name), None) if key is not None and so is not None: # Purposefully not checking for plObjInterface -- they should never be shared. - if isinstance(pClass, plModifier): + if issubclass(pClass, plModifier): if key not in so.modifiers: # We really shouldn't add plSingleModifiers to multiple objects. This may # potentially cause URU to crash. I'm uncertain though, so we'll just warn # for now. - if isinstance(pClass, plSingleModifier): + if issubclass(pClass, plSingleModifier): self._exporter().report.warn("Adding SingleModifier '{}' (type: '{}'') to another SceneObject '{}'", key.name, pClass.__name__[2:], so.key.name) so.addModifier(key)