+ fixes #0001112: Changing sketch size that contains arcs after padding will create an artifact on bottom side
This commit is contained in:
@@ -167,6 +167,7 @@ struct EditData {
|
||||
int PreselectConstraint;
|
||||
bool blockedPreselection;
|
||||
bool FullyConstrained;
|
||||
bool visibleBeforeEdit;
|
||||
|
||||
// instance of the solver
|
||||
Sketcher::Sketch ActSketch;
|
||||
@@ -2940,6 +2941,7 @@ bool ViewProviderSketch::setEdit(int ModNum)
|
||||
edit = new EditData();
|
||||
|
||||
createEditInventorNodes();
|
||||
edit->visibleBeforeEdit = this->isVisible();
|
||||
this->hide(); // avoid that the wires interfere with the edit lines
|
||||
|
||||
ShowGrid.setValue(true);
|
||||
@@ -3245,11 +3247,14 @@ void ViewProviderSketch::unsetEdit(int ModNum)
|
||||
if (edit->sketchHandler)
|
||||
deactivateHandler();
|
||||
|
||||
if (edit->visibleBeforeEdit)
|
||||
this->show();
|
||||
else
|
||||
this->hide();
|
||||
|
||||
delete edit;
|
||||
edit = 0;
|
||||
|
||||
this->show();
|
||||
|
||||
try {
|
||||
// and update the sketch
|
||||
getSketchObject()->getDocument()->recompute();
|
||||
|
||||
Reference in New Issue
Block a user