Sketcher, Issue 0000808: fix one more issue with restoring of external geometry
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user