Sketcher, Issue 0000808: fix one more issue with restoring of external geometry

This commit is contained in:
logari81
2012-08-07 01:21:45 +02:00
parent db2ccb31b4
commit fef08056a1
2 changed files with 3 additions and 3 deletions

View File

@@ -1350,6 +1350,8 @@ void SketchObject::rebuildExternalGeometry(void)
break;
}
}
rebuildVertexIndex();
}
std::vector<Part::Geometry*> SketchObject::getCompleteGeometry(void) const
@@ -1491,8 +1493,6 @@ void SketchObject::Restore(XMLReader &reader)
{
// read the father classes
Part::Part2DObject::Restore(reader);
Constraints.acceptGeometry(getCompleteGeometry());
rebuildVertexIndex();
}
void SketchObject::onChanged(const App::Property* prop)

View File

@@ -1716,7 +1716,7 @@ void ViewProviderSketch::draw(bool temp)
Points.push_back(start);
Points.push_back(end);
}
else if ((*it)->getTypeId() == Part::GeomBSplineCurve::getClassTypeId()) { // add a circle
else if ((*it)->getTypeId() == Part::GeomBSplineCurve::getClassTypeId()) { // add a bspline
const Part::GeomBSplineCurve *spline = dynamic_cast<const Part::GeomBSplineCurve *>(*it);
Handle_Geom_BSplineCurve curve = Handle_Geom_BSplineCurve::DownCast(spline->handle());