From 0503f06930713345bf03dcda161ae0c23f681595 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 8 Oct 2021 18:21:42 +0200 Subject: [PATCH] PD: do not enforce a reference axis when no profile is used to pad a face --- src/Mod/PartDesign/Gui/TaskPadParameters.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/TaskPadParameters.cpp b/src/Mod/PartDesign/Gui/TaskPadParameters.cpp index e20d1b8624..fc4d95354c 100644 --- a/src/Mod/PartDesign/Gui/TaskPadParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskPadParameters.cpp @@ -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(vp->getObject());