Skip to content

Commit

Permalink
Sketcher: Ensure that ViewProvider Geometry extensions is correctly i…
Browse files Browse the repository at this point in the history
…nitialised
  • Loading branch information
abdullahtahiriyo committed Dec 12, 2020
1 parent 3f6fed3 commit 512d5c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit 512d5c6

Please sign in to comment.