Revert "Sketcher: hidding constraints - fix entry into empty sketch"

This reverts commit e94a86dd70.
This commit is contained in:
wmayer
2017-05-01 16:16:13 +02:00
parent e94a86dd70
commit d25d7a2be2

View File

@@ -3972,7 +3972,7 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer
const std::vector<Sketcher::Constraint *> &constrlist = getSketchObject()->Constraints.getValues();
// After an undo/redo it can happen that we have an empty geometry list but a non-empty constraint list
// In this case just ignore the constraints. (See bug #0000421)
if (geomlist->size() <= 2 /*&& !constrlist.empty()*/) {
if (geomlist->size() <= 2 && !constrlist.empty()) {
rebuildConstraintsVisual();
return;
}