Objects colored by extruder color

This commit is contained in:
Enrico Turri 2018-04-05 12:52:29 +02:00
parent 1e185dacc4
commit 76beaa6421
9 changed files with 118 additions and 2 deletions

View file

@ -788,7 +788,7 @@ static inline int hex_digit_to_int(const char c)
(c >= 'a' && c <= 'f') ? int(c - 'a') + 10 : -1;
}
static inline bool parse_color(const std::string &scolor, unsigned char *rgb_out)
bool PresetBundle::parse_color(const std::string &scolor, unsigned char *rgb_out)
{
rgb_out[0] = rgb_out[1] = rgb_out[2] = 0;
if (scolor.size() != 7 || scolor.front() != '#')