[PD] Pad/pocket: fix wrong error message
- the error can also occur when the mode it not UpToFace (ToFirst or ToLast) - also add note when Reversed checkbox is enabled since this is no obvious (as discussed in the forum) - also some whitespace unification and include sorting
This commit is contained in:
@@ -20,17 +20,17 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <Precision.hxx>
|
||||
#endif
|
||||
|
||||
#include <Mod/PartDesign/App/FeaturePad.h>
|
||||
|
||||
#include "ui_TaskPadPocketParameters.h"
|
||||
#include "TaskPadParameters.h"
|
||||
|
||||
|
||||
using namespace PartDesignGui;
|
||||
using namespace Gui;
|
||||
|
||||
@@ -103,6 +103,8 @@ void TaskPadParameters::onModeChanged(int index)
|
||||
pcPad->Type.setValue("UpToFirst");
|
||||
break;
|
||||
case Modes::ToFace:
|
||||
// Note: ui->checkBoxReversed is purposely enabled because the selected face
|
||||
// could be a circular one around the sketch
|
||||
pcPad->Type.setValue("UpToFace");
|
||||
if (ui->lineFaceName->text().isEmpty()) {
|
||||
ui->buttonFace->setChecked(true);
|
||||
|
||||
Reference in New Issue
Block a user