1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Fix an error when replacing nutexb

This commit is contained in:
KillzXGaming 2019-12-19 17:08:19 -05:00
parent fa8a409df6
commit 60e09b8511

View File

@ -1565,8 +1565,11 @@ namespace FirstPlugin
}
Texture tex = setting.FromBitMap(setting.DataBlockOutput, setting);
tex.UserData = Texture.UserData;
tex.UserDataDict = Texture.UserDataDict;
if (Texture != null && Texture.UserData != null) {
tex.UserData = Texture.UserData;
tex.UserDataDict = Texture.UserDataDict;
}
tex.Name = Text;
Texture = tex;