src/editmodes/abstractEditMode.cpp

changeset 1130
17f92eb2a30c
parent 1129
2b20261dc511
child 1145
02264bf0108d
--- 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];

mercurial