4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 22:36:52 +00:00

Don't unconditionally add DynTextMaps

They could be referenced in logic nodes, creating a race condition
This commit is contained in:
2015-07-18 22:32:24 -04:00
parent 209c65a95b
commit dfc1b687ab

View File

@ -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