Check ThemeSupportBitmask

This commit is contained in:
Haselnussbomber 2025-12-27 12:14:22 +01:00
parent bf25d11cdb
commit eed67511d2
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -295,7 +295,7 @@ internal class UldWidget : IDataWindowWidget
else if (e is not null)
ImGui.Text(e.ToString());
if (this.selectedTheme != 0)
if (this.selectedTheme != 0 && (textureEntry.ThemeSupportBitmask & (1 << (this.selectedTheme - 1))) != 0)
{
var texturePathThemed = this.ToThemedPath(texturePath);
if (this.dataManager.FileExists(texturePathThemed))