NEW:disabled materials item will retain original color

jira:[STUDIO-10539]

Change-Id: Iabdbc6582dae5bcb2ec31775163949f0d451dcca
(cherry picked from commit fdb57550aa01ae88538b2de954670b84c6e72baa)
This commit is contained in:
tao wang
2025-03-05 18:26:11 +08:00
committed by Noisyfox
parent 740f7eabb1
commit 51317b4753
3 changed files with 10 additions and 5 deletions

View File

@@ -99,16 +99,18 @@ void MaterialItem::reset_ams_info() {
void MaterialItem::disable()
{
if (IsEnabled()) {
this->Disable();
Refresh();
//this->Disable();
//Refresh();
m_enable = false;
}
}
void MaterialItem::enable()
{
if (!IsEnabled()) {
this->Enable();
Refresh();
/*this->Enable();
Refresh();*/
m_enable = true;
}
}