Sketcher: Add root point by default

Replace all Vertex ids with Geo,Pos id pairs in CommandConstraints
This commit is contained in:
logari81
2012-11-28 15:14:13 +01:00
parent 1d80d7e617
commit a6cf1fd88f
4 changed files with 274 additions and 222 deletions

View File

@@ -1519,7 +1519,7 @@ void SketchObject::onFinishDuplicating()
onDocumentRestored();
}
void SketchObject::getGeoVertexIndex(int VertexId, int &GeoId, PointPos &PosId)
void SketchObject::getGeoVertexIndex(int VertexId, int &GeoId, PointPos &PosId) const
{
if (VertexId < 0 || VertexId >= int(VertexId2GeoId.size())) {
GeoId = Constraint::GeoUndef;