Assembly: Add support for body subobjects (coordinate systems, datums...) and various fixes

This commit is contained in:
Paddle
2023-12-21 17:20:22 +01:00
committed by PaddleStroke
parent 1a44706e6d
commit 1d40087b3f
4 changed files with 42 additions and 18 deletions

View File

@@ -76,6 +76,16 @@ bool ViewProviderAssembly::doubleClicked()
Gui::Application::Instance->activeDocument()->resetEdit();
}
else {
// assure the PartDesign workbench
if (App::GetApplication()
.GetUserParameter()
.GetGroup("BaseApp")
->GetGroup("Preferences")
->GetGroup("Mod/Assembly")
->GetBool("SwitchToWB", true)) {
Gui::Command::assureWorkbench("AssemblyWorkbench");
}
// Part is not 'Active' so we enter edit mode to make it so.
Gui::Application::Instance->activeDocument()->setEdit(this);
}