--- a/src/basics.h Wed Nov 05 02:07:38 2014 +0200 +++ b/src/basics.h Wed Nov 05 03:49:29 2014 +0200 @@ -23,6 +23,7 @@ #include <QMetaType> #include <QVector3D> #include <QSharedPointer> +#include <functional> #include "macros.h" class LDObject; @@ -65,10 +66,8 @@ inline void invertWinding (Winding& winding) { - if (winding == Winding::CW) - winding = Winding::CCW; - elif (winding == Winding::CCW) - winding = Winding::CW; + if (winding != Winding::None) + winding = Winding (int (winding) ^ 1); } //