From 4f065faea064d3407157bfe570d0cd67622a6d7b Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 15 Feb 2019 13:25:46 +0300 Subject: [PATCH] Issue #2862: Reset state of visibility if it was unsynchronized. --- src/XGUI/XGUI_ObjectsBrowser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index 1862244a5..37f2fe0c5 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -244,8 +244,11 @@ void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex) bool hasHiddenState = aModel->hasHiddenState(theIndex); if (aObjBrowser && hasHiddenState && !aObjBrowser->workshop()->prepareForDisplay(anObjects)) return; - if (hasHiddenState) // #issue 2335(hide all faces then show solid problem) + if (hasHiddenState) { // #issue 2335(hide all faces then show solid problem) + if (aResObj->isDisplayed()) + aResObj->setDisplayed(false); aResObj->setDisplayed(true); + } else aResObj->setDisplayed(!aResObj->isDisplayed()); Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY)); -- 2.39.2