diff -r e2080ac44039 -r 488d0ba6070b src/colors.cpp --- a/src/colors.cpp Fri Sep 17 22:43:22 2021 +0300 +++ b/src/colors.cpp Tue Sep 21 16:00:15 2021 +0300 @@ -127,3 +127,13 @@ return colorTable[color].faceColor; } } + +QDataStream& operator<<(QDataStream& stream, ldraw::Color color) +{ + return stream << color.index; +} + +QDataStream& operator>>(QDataStream& stream, ldraw::Color& color) +{ + return stream >> color.index; +}