--- a/src/editmodes/abstractEditMode.cpp Tue Feb 14 07:57:27 2017 +0200 +++ b/src/editmodes/abstractEditMode.cpp Tue Feb 14 08:08:17 2017 +0200 @@ -124,7 +124,7 @@ // Sort the vertices in order of distance to camera std::sort(vertices.begin(), vertices.end(), [&](const Vertex& a, const Vertex& b) -> bool { - if (renderer()->cameraInfo(renderer()->camera()).negatedDepth) + if (renderer()->currentCamera().isAxisNegated(Z)) return a[depthAxis] > b[depthAxis]; else return a[depthAxis] < b[depthAxis];