mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH:add protection before filament blacklist check
Change-Id: I53a85509fbe7cd92478f49b2403cfc3ad551e0e7
This commit is contained in:
parent
ceb923bc2b
commit
71a0c8302f
1 changed files with 4 additions and 2 deletions
|
@ -720,7 +720,9 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
|
||||||
std::string filamnt_type;
|
std::string filamnt_type;
|
||||||
it->get_filament_type(filamnt_type);
|
it->get_filament_type(filamnt_type);
|
||||||
|
|
||||||
|
if (it->vendor) {
|
||||||
DeviceManager::check_filaments_in_blacklist(it->vendor->name, filamnt_type, in_blacklist, action, info);
|
DeviceManager::check_filaments_in_blacklist(it->vendor->name, filamnt_type, in_blacklist, action, info);
|
||||||
|
}
|
||||||
|
|
||||||
if (in_blacklist) {
|
if (in_blacklist) {
|
||||||
if (action == "prohibition") {
|
if (action == "prohibition") {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue