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:
@ -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
|
||||
|
Reference in New Issue
Block a user