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:
@@ -73,7 +73,7 @@ void ActiveObjectList::setHighlight(const ObjectInfo& info, HighlightMode mode,
|
||||
return;
|
||||
}
|
||||
|
||||
if (TreeParams::getTreeActiveAutoExpand()) {
|
||||
if (TreeParams::getTreeActiveAutoExpand() && (enable || vp->isAutoCollapseOnDeactivation())) {
|
||||
vp->getDocument()->signalExpandObject(
|
||||
*vp,
|
||||
enable ? TreeItemMode::ExpandPath : TreeItemMode::CollapseItem,
|
||||
|
||||
Reference in New Issue
Block a user