src/editmodes/curvemode.cpp

changeset 1079
67c6e5d32e68
parent 1077
952d6b3e7d11
child 1104
edddb9b0db9e
equal deleted inserted replaced
1078:c72e3115a297 1079:67c6e5d32e68
84 84
85 void CurveMode::endDraw() 85 void CurveMode::endDraw()
86 { 86 {
87 if (countof(m_drawedVerts) == 4) 87 if (countof(m_drawedVerts) == 4)
88 { 88 {
89 Model model; 89 Model model {m_documents};
90 model.emplace<LDBezierCurve>(m_drawedVerts[0], m_drawedVerts[1], m_drawedVerts[2], m_drawedVerts[3]); 90 model.emplace<LDBezierCurve>(m_drawedVerts[0], m_drawedVerts[1], m_drawedVerts[2], m_drawedVerts[3]);
91 finishDraw(model); 91 finishDraw(model);
92 } 92 }
93 } 93 }

mercurial