diff -r 2b20261dc511 -r 17f92eb2a30c src/editmodes/abstractEditMode.cpp --- 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];