mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
ENH:fixed incorrect prompt for glow material
jira:[STUDIO-10574] Change-Id: I4475eb527ffbc8cc6d72405445552971d062b45e (cherry picked from commit 01918affdfb69879f86ca47fe2f1ab8af5e1311b)
This commit is contained in:
@@ -55,7 +55,7 @@ struct FilamentInfo
|
||||
std::string slot_id;
|
||||
|
||||
public:
|
||||
int get_amd_id() const
|
||||
int get_ams_id() const
|
||||
{
|
||||
if (ams_id.empty()) { return -1; };
|
||||
|
||||
@@ -68,6 +68,17 @@ public:
|
||||
return -1;
|
||||
};
|
||||
|
||||
int get_slot_id() const
|
||||
{
|
||||
if (slot_id.empty()) { return -1; };
|
||||
|
||||
try {
|
||||
return stoi(slot_id);
|
||||
} catch (...) {};
|
||||
|
||||
return -1;
|
||||
};
|
||||
|
||||
/*copied from AmsTray::get_display_filament_type()*/
|
||||
std::string get_display_filament_type()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user