PartDesign: fix exiting a TransformedFeature editing while in reference selection mode
This commit is contained in:
parent
9907c09efd
commit
5df7f2db88
|
@ -259,7 +259,10 @@ bool TaskDlgTransformedParameters::accept()
|
|||
|
||||
bool TaskDlgTransformedParameters::reject()
|
||||
{
|
||||
// Get object before view is invalidated
|
||||
// ensure that we are not in selection mode
|
||||
parameter->exitSelectionMode();
|
||||
|
||||
// get object and originals before view is invalidated (if it is invalidated)
|
||||
PartDesign::Transformed* pcTransformed = static_cast<PartDesign::Transformed*>(TransformedView->getObject());
|
||||
std::vector<App::DocumentObject*> pcOriginals = pcTransformed->Originals.getValues();
|
||||
|
||||
|
|
|
@ -64,6 +64,8 @@ public:
|
|||
/// Get the sketch object of the first original either of the object associated with this feature or with the parent feature (MultiTransform mode)
|
||||
App::DocumentObject* getSketchObject() const;
|
||||
|
||||
void exitSelectionMode();
|
||||
|
||||
protected Q_SLOTS:
|
||||
/// Connect the subTask OK button to the MultiTransform task
|
||||
virtual void onSubTaskButtonOK() {}
|
||||
|
@ -81,7 +83,6 @@ protected:
|
|||
void showObject();
|
||||
void hideOriginals();
|
||||
void showOriginals();
|
||||
void exitSelectionMode();
|
||||
|
||||
void addReferenceSelectionGate(bool edge, bool face);
|
||||
protected:
|
||||
|
|
Loading…
Reference in New Issue
Block a user