From dfc1b687ab2b6970b454dde8e8624cae667834d8 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 18 Jul 2015 22:32:24 -0400 Subject: [PATCH] Don't unconditionally add DynTextMaps They could be referenced in logic nodes, creating a race condition --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index df35d34..37aee48 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -430,7 +430,7 @@ class MaterialConverter: # Otherwise, we toss this layer and some info into our pending texture dict and process it # when the exporter tells us to finalize all our shit if texture.image is None: - dtm = self._mgr.add_object(plDynamicTextMap, name="{}_DynText".format(layer.key.name), bl=bo) + dtm = self._mgr.find_create_object(plDynamicTextMap, name="{}_DynText".format(layer.key.name), bl=bo) dtm.hasAlpha = texture.use_alpha # if you have a better idea, let's hear it... dtm.visWidth, dtm.visHeight = 1024, 1024