From: vsv Date: Fri, 15 Feb 2019 10:25:46 +0000 (+0300) Subject: Issue #2862: Reset state of visibility if it was unsynchronized. X-Git-Tag: V9_3_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f065faea064d3407157bfe570d0cd67622a6d7b;p=modules%2Fshaper.git Issue #2862: Reset state of visibility if it was unsynchronized. --- 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));