Sketcher: Bug fix: Wrong solver information upon failed solve
============================================================= http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&start=80#p92820 ...I already have a minor bug, if you insert a conflicting dimensional constraint, the solver information is not updated, the work-around is to hit "Manual Update".
This commit is contained in:
parent
bade81ddcf
commit
fbc6ed5c77
|
@ -4089,10 +4089,13 @@ void ViewProviderSketch::updateData(const App::Property *prop)
|
|||
// Because a solve is mandatory to any addition (at least to update the DoF of the solver),
|
||||
// only when the solver geometry is the same in number than the sketch geometry an update
|
||||
// should trigger a redraw. This reduces even more the number of redraws per insertion of geometry
|
||||
|
||||
|
||||
// solver information is also updated when no matching geometry, so that if a solving fails
|
||||
// this failed solving info is presented to the user
|
||||
UpdateSolverInformation(); // just update the solver window with the last SketchObject solving information
|
||||
|
||||
if(getSketchObject()->getExternalGeometryCount()+getSketchObject()->getHighestCurveIndex() + 1 ==
|
||||
getSketchObject()->getSolvedSketch().getGeometrySize()) {
|
||||
UpdateSolverInformation(); // just update the solver window with the last SketchObject solving information
|
||||
draw(false);
|
||||
|
||||
signalConstraintsChanged();
|
||||
|
|
Loading…
Reference in New Issue
Block a user