Fixed build when tech ENABLE_GCODE_VIEWER is disabled + fixed perl code

This commit is contained in:
enricoturri1966 2020-05-07 11:24:36 +02:00
parent 89dafeac95
commit 27b9f85607
7 changed files with 50 additions and 41 deletions

View file

@ -1950,7 +1950,7 @@ std::string TickCodeInfo::get_color_for_tick(TickCode tick, const std::string& c
if (mode == t_mode::SingleExtruder && code == ColorChangeCode && m_use_default_colors)
{
#if ENABLE_GCODE_VIEWER
const std::vector<std::string>& colors = ColorPrintColors::get();
const std::vector<std::string>& colors = Slic3r::ColorPrintColors::get();
#else
const std::vector<std::string>& colors = GCodePreviewData::ColorPrintColors();
#endif // ENABLE_GCODE_VIEWER