Skip to content

Commit

Permalink
PD: do not enforce a reference axis when no profile is used to pad a …
Browse files Browse the repository at this point in the history
…face
  • Loading branch information
wwmayer committed Oct 8, 2021
1 parent f411390 commit 0503f06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/PartDesign/Gui/TaskPadParameters.cpp
Expand Up @@ -775,7 +775,10 @@ void TaskPadParameters::getReferenceAxis(App::DocumentObject*& obj, std::vector<
int num = ui->directionCB->currentIndex();
const App::PropertyLinkSub& lnk = *(axesInList[num]);
if (lnk.getValue() == 0) {
throw Base::RuntimeError("Still in reference selection mode; reference wasn't selected yet");
// Note: Is is possible that a face of an object is directly padded without defining a profile shape
obj = nullptr;
sub.clear();
//throw Base::RuntimeError("Still in reference selection mode; reference wasn't selected yet");
}
else {
PartDesign::ProfileBased* pcDirection = static_cast<PartDesign::ProfileBased*>(vp->getObject());
Expand Down

0 comments on commit 0503f06

Please sign in to comment.