Sketcher: Ensure that ViewProvider Geometry extensions is correctly initialised
This commit is contained in:
committed by
abdullahtahiriyo
parent
384783dfee
commit
02a8af773f
@@ -6101,9 +6101,14 @@ bool ViewProviderSketch::setEdit(int ModNum)
|
||||
getSketchObject()->validateExternalLinks();
|
||||
}
|
||||
|
||||
// First drawing with non-temporal geometry, then updating solver information
|
||||
// This ensures that any ViewProvider geometry extension is set before the geometry
|
||||
// is loaded into the solver, which ensures that any prospective draw using temporal
|
||||
// geometry (draw with first parameter true) has the right ViewProvider geometry extensions
|
||||
// set - This fixes Weight constraint dragging on a just opened sketch.
|
||||
draw(false,true);
|
||||
getSketchObject()->solve(false);
|
||||
UpdateSolverInformation();
|
||||
draw(false,true);
|
||||
|
||||
connectUndoDocument = getDocument()
|
||||
->signalUndoDocument.connect(boost::bind(&ViewProviderSketch::slotUndoDocument, this, bp::_1));
|
||||
|
||||
Reference in New Issue
Block a user