ENABLE_GCODE_VIEWER_AS_STATE -> Load gcode from file and process it

This commit is contained in:
enricoturri1966 2020-06-08 09:12:20 +02:00
parent bd5a5bf78f
commit ca17948f87
12 changed files with 46 additions and 138 deletions
src/libslic3r/GCode

View file

@ -104,9 +104,9 @@ namespace Slic3r {
struct Result
{
static unsigned int id;
unsigned int id;
std::vector<MoveVertex> moves;
void reset() { ++id; moves = std::vector<MoveVertex>(); }
void reset() { moves = std::vector<MoveVertex>(); }
};
private:
@ -134,6 +134,7 @@ namespace Slic3r {
CpColor m_cp_color;
Result m_result;
static unsigned int s_result_id;
public:
GCodeProcessor() { reset(); }