src/editmodes/linePathMode.cpp

changeset 1139
51303023d651
parent 1129
2b20261dc511
child 1141
7dc2c981937e
equal deleted inserted replaced
1138:0dfdef50b0ee 1139:51303023d651
81 void LinePathMode::endDraw() 81 void LinePathMode::endDraw()
82 { 82 {
83 Model model {m_documents}; 83 Model model {m_documents};
84 84
85 for (int i = 0; i < countof(m_drawedVerts) - 1; ++i) 85 for (int i = 0; i < countof(m_drawedVerts) - 1; ++i)
86 model.emplace<LDLine>(m_drawedVerts[i], m_drawedVerts[i + 1]); 86 model.emplace<LDEdgeLine>(m_drawedVerts[i], m_drawedVerts[i + 1]);
87 87
88 finishDraw(model); 88 finishDraw(model);
89 } 89 }
90 90
91 bool LinePathMode::keyReleased (QKeyEvent* ev) 91 bool LinePathMode::keyReleased (QKeyEvent* ev)

mercurial