ENH:fixed incorrect prompt for glow material

jira:[STUDIO-10574]

Change-Id: I4475eb527ffbc8cc6d72405445552971d062b45e
(cherry picked from commit 01918affdfb69879f86ca47fe2f1ab8af5e1311b)
This commit is contained in:
tao wang
2025-02-21 16:15:53 +08:00
committed by Noisyfox
parent bab0a9cb92
commit 1241b66dfc
7 changed files with 72 additions and 41 deletions

View File

@@ -552,13 +552,9 @@ void AMSMaterialsSetting::on_select_ok(wxCommandEvent &event)
auto vendor = dynamic_cast<ConfigOptionStrings *>(it->config.option("filament_vendor"));
PresetBundle *preset_bundle = GUI::wxGetApp().preset_bundle;
auto option = preset_bundle->get_filament_by_filament_id(filament_id);
auto tag_name = option ? option->filament_name : "";
if (vendor && (vendor->values.size() > 0)) {
std::string vendor_name = vendor->values[0];
DeviceManager::check_filaments_in_blacklist(vendor_name, filamnt_type, tag_name, ams_id, in_blacklist, action, info);
DeviceManager::check_filaments_in_blacklist(vendor_name, filamnt_type, ams_id, slot_id, in_blacklist, action, info);
}
if (in_blacklist) {