mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-24 07:19:24 -07:00
Fix of
Extend the "filament type" list with PC or allow free form text into the filament type field. #1704
This commit is contained in:
@@ -474,6 +474,8 @@ WipeTowerPrusaMM::material_type WipeTowerPrusaMM::parse_material(const char *nam
|
||||
return NGEN;
|
||||
if (strcasecmp(name, "PVA") == 0)
|
||||
return PVA;
|
||||
if (strcasecmp(name, "PC") == 0)
|
||||
return PC;
|
||||
return INVALID;
|
||||
}
|
||||
|
||||
@@ -489,6 +491,7 @@ std::string WipeTowerPrusaMM::to_string(material_type material)
|
||||
case EDGE: return "EDGE";
|
||||
case NGEN: return "NGEN";
|
||||
case PVA: return "PVA";
|
||||
case PC: return "PC";
|
||||
case INVALID:
|
||||
default: return "INVALID";
|
||||
}
|
||||
|
||||
@@ -34,7 +34,8 @@ public:
|
||||
SCAFF = 5, // E:215C B:55C
|
||||
EDGE = 6, // E:240C B:80C
|
||||
NGEN = 7, // E:230C B:80C
|
||||
PVA = 8 // E:210C B:80C
|
||||
PVA = 8, // E:210C B:80C
|
||||
PC = 9
|
||||
};
|
||||
|
||||
// Parse material name into material_type.
|
||||
|
||||
Reference in New Issue
Block a user