luz paz
2020-07-20 06:08:22 -04:00
committed by Yorik van Havre
parent 4851947bc0
commit f20ab1765f
13 changed files with 17 additions and 17 deletions

View File

@@ -207,7 +207,7 @@ void DressUp::getAddSubShape(Part::TopoShape &addShape, Part::TopoShape &subShap
// SupportTransform means transform the support together with
// the dressing. So we need to find the previous support
// feature (which must be of type FeatureAddSub), and skipping
// any consequtive DressUp in-between.
// any consecutive DressUp in-between.
for(Feature *current=this; ;current=static_cast<DressUp*>(base)) {
base = Base::freecad_dynamic_cast<FeatureAddSub>(current->getBaseObject(true));
if(!base)

View File

@@ -1631,16 +1631,16 @@ bool dressupGetSelected(Gui::Command* cmd, const std::string& which,
if (selection.size() == 0) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("Select an edge, face or body."));
QObject::tr("Select an edge, face, or body."));
return false;
} else if (selection.size() != 1) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("Select an edge, face or body from a single body."));
QObject::tr("Select an edge, face, or body from a single body."));
return false;
}
else if (pcActiveBody != PartDesignGui::getBodyFor(selection[0].getObject(), false)) {
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Selection is not in Active Body"),
QObject::tr("Select an edge, face or body from an active body."));
QObject::tr("Select an edge, face, or body from an active body."));
return false;
}