FIX:fixed unable to pick color
jira:[for setting] Change-Id: I877af3561fcbeb43b46202cb2b27b6522425a83f (cherry picked from commit 5648ef61afdc1463e7dc80856a6e4a65e6a892c7)
This commit is contained in:
parent
688b7697b3
commit
65d4d31bb3
1 changed files with 6 additions and 1 deletions
|
@ -711,9 +711,14 @@ void AMSMaterialsSetting::on_picker_color(wxCommandEvent& event)
|
|||
|
||||
void AMSMaterialsSetting::on_clr_picker(wxMouseEvent &event)
|
||||
{
|
||||
if(!m_is_third || !obj->is_support_filament_setting_inprinting)
|
||||
if(!m_is_third)
|
||||
return;
|
||||
|
||||
if (obj->is_in_printing() || obj->can_resume()) {
|
||||
if (!obj->is_support_filament_setting_inprinting) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<wxColour> ams_colors;
|
||||
for (auto ams_it = obj->amsList.begin(); ams_it != obj->amsList.end(); ++ams_it) {
|
||||
|
|
Loading…
Reference in a new issue