Fixed button click state not resetting bug #398

Merged
maverickdgg merged 4 commits from SP3-20-UI-System into main 2023-03-05 14:46:18 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 8b24d7e32b - Show all commits

View File

@ -323,7 +323,7 @@ namespace SHADE
//SHLOG_INFO("SETTING HOVERED TEXTURE")
}
}
if (textureID != 0)
if (textureID != 0 && comp.currentTexture != textureID)
{
auto material = renderable->GetModifiableMaterial();
comp.currentTexture = textureID;