mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
NEW:disabled materials item will retain original color
jira:[STUDIO-10539] Change-Id: Iabdbc6582dae5bcb2ec31775163949f0d451dcca (cherry picked from commit fdb57550aa01ae88538b2de954670b84c6e72baa)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user