Assembly: prevent assembly collapse when editing sketch. (#26956)
* Gui: View provider: isAutoCollapseOnDeactivation * Update ViewProvider.h * Update ActiveObjectList.cpp * Update ViewProviderAssembly.cpp * Update ActiveObjectList.cpp
This commit is contained in:
@@ -152,6 +152,7 @@ void ViewProviderAssembly::setupContextMenu(QMenu* menu, QObject* receiver, cons
|
||||
bool ViewProviderAssembly::doubleClicked()
|
||||
{
|
||||
if (isInEditMode()) {
|
||||
autoCollapseOnDeactivation = true;
|
||||
getDocument()->resetEdit();
|
||||
}
|
||||
else {
|
||||
@@ -280,6 +281,7 @@ bool ViewProviderAssembly::setEdit(int mode)
|
||||
if (mode == ViewProvider::Default) {
|
||||
// Ask that this edit mode be restored. For example if it is quit to edit a sketch.
|
||||
getDocument()->setEditRestore(true);
|
||||
autoCollapseOnDeactivation = false;
|
||||
|
||||
// Set the part as 'Activated' ie bold in the tree.
|
||||
Gui::Command::doCommand(
|
||||
|
||||
Reference in New Issue
Block a user