src/editmodes/circleMode.cpp

changeset 1401
59b578c77111
parent 1399
f52ea4078f5d
child 1403
7a2d84112983
--- a/src/editmodes/circleMode.cpp	Sun Jun 10 21:48:58 2018 +0300
+++ b/src/editmodes/circleMode.cpp	Sun Jun 10 23:07:24 2018 +0300
@@ -105,6 +105,7 @@
 		Matrix transform = Matrix::fromQMatrix(renderer()->currentCamera().transformationMatrix(1));
 		transform *= Matrix::scaleMatrix(dist0);
 		model.emplace<LDCircularPrimitive>(PrimitiveModel::Circle, segments, divisions, transform, displacement);
+		finishDraw(model);
 		return;
 	}
 	else if (qFuzzyCompare(dist0, 0) or qFuzzyCompare(dist1, 0))
@@ -114,6 +115,7 @@
 		Matrix transform = Matrix::fromQMatrix(renderer()->currentCamera().transformationMatrix(1));
 		transform *= Matrix::scaleMatrix(max(dist0, dist1));
 		model.emplace<LDCircularPrimitive>(PrimitiveModel::Disc, segments, divisions, transform, displacement);
+		finishDraw(model);
 		return;
 	}
 	else if (g_RingFinder.findRings(dist0, dist1)) // Consult the ring finder now

mercurial