code review: move transaction to outside from loop, fix several bugs, fix whitespaces
This commit is contained in:
@@ -1633,11 +1633,11 @@ void SketchObject::getGeoVertexIndex(int VertexId, int &GeoId, PointPos &PosId)
|
||||
|
||||
int SketchObject::getVertexIndexGeoPos(int GeoId, PointPos PosId) const
|
||||
{
|
||||
|
||||
for(int i=0;i<VertexId2GeoId.size();i++)
|
||||
if(VertexId2GeoId[i]==GeoId && VertexId2PosId[i]==PosId)
|
||||
return i;
|
||||
|
||||
for(int i=0;i<VertexId2GeoId.size();i++) {
|
||||
if(VertexId2GeoId[i]==GeoId && VertexId2PosId[i]==PosId)
|
||||
return i;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user