Sun, 10 Jun 2018 23:07:24 +0300
fixed bugs regarding circular primitives
--- 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
--- a/src/linetypes/circularprimitive.cpp Sun Jun 10 21:48:58 2018 +0300 +++ b/src/linetypes/circularprimitive.cpp Sun Jun 10 23:07:24 2018 +0300 @@ -201,5 +201,5 @@ void LDCircularPrimitive::serialize(class Serializer& serializer) { LDMatrixObject::serialize(serializer); - serializer << m_segments << m_divisions; + serializer << m_segments << m_divisions << m_type; }