Switch to PartDesign workbench as soon as a PartDesign feature is edited
This commit is contained in:
committed by
Stefan Tröger
parent
0fd0a5d605
commit
9ca63b603a
@@ -51,6 +51,7 @@
|
||||
#include "TaskTransformedParameters.h"
|
||||
#include <Base/Console.h>
|
||||
#include <Gui/Control.h>
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Application.h>
|
||||
#include <Mod/Part/App/TopoShape.h>
|
||||
#include <Mod/PartDesign/App/FeatureAdditive.h>
|
||||
@@ -129,6 +130,9 @@ bool ViewProviderTransformed::setEdit(int ModNum)
|
||||
|
||||
void ViewProviderTransformed::unsetEdit(int ModNum)
|
||||
{
|
||||
// return to the WB we were in before editing the PartDesign feature
|
||||
Gui::Command::assureWorkbench(oldWb.c_str());
|
||||
|
||||
if (ModNum == ViewProvider::Default) {
|
||||
// when pressing ESC make sure to close the dialog
|
||||
Gui::Control().closeDialog();
|
||||
|
||||
Reference in New Issue
Block a user