GCode Viewer - Show print/printer/filament settings names in legend
This commit is contained in:
parent
8448d1a1dc
commit
479d4b70f2
4 changed files with 88 additions and 20 deletions
src/libslic3r/GCode
|
@ -266,10 +266,23 @@ namespace Slic3r {
|
|||
|
||||
struct Result
|
||||
{
|
||||
struct SettingsIds
|
||||
{
|
||||
std::string print;
|
||||
std::vector<std::string> filament;
|
||||
std::string printer;
|
||||
|
||||
void reset()
|
||||
{
|
||||
print = "";
|
||||
filament = std::vector<std::string>();
|
||||
printer = "";
|
||||
}
|
||||
};
|
||||
unsigned int id;
|
||||
std::vector<MoveVertex> moves;
|
||||
Pointfs bed_shape;
|
||||
std::string printer_settings_id;
|
||||
SettingsIds settings_ids;
|
||||
std::vector<std::string> extruder_colors;
|
||||
PrintEstimatedTimeStatistics time_statistics;
|
||||
|
||||
|
@ -281,6 +294,7 @@ namespace Slic3r {
|
|||
moves = std::vector<MoveVertex>();
|
||||
bed_shape = Pointfs();
|
||||
extruder_colors = std::vector<std::string>();
|
||||
settings_ids.reset();
|
||||
}
|
||||
#else
|
||||
void reset()
|
||||
|
@ -288,6 +302,7 @@ namespace Slic3r {
|
|||
moves = std::vector<MoveVertex>();
|
||||
bed_shape = Pointfs();
|
||||
extruder_colors = std::vector<std::string>();
|
||||
settings_ids.reset();
|
||||
}
|
||||
#endif // ENABLE_GCODE_VIEWER_STATISTICS
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue