From 09365c927ebe8d881de2eda7f96bc33a2d9511c8 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 8 Oct 2019 11:55:56 +0300 Subject: [PATCH] Update viewer on delete an item --- src/XGUI/XGUI_FacesPanel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_FacesPanel.cpp b/src/XGUI/XGUI_FacesPanel.cpp index bc35ff267..d92ae5669 100644 --- a/src/XGUI/XGUI_FacesPanel.cpp +++ b/src/XGUI/XGUI_FacesPanel.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -294,10 +295,13 @@ bool XGUI_FacesPanel::processDelete() bool isRedisplayed = redisplayObjects(aRestoredObjects); isRedisplayed = displayHiddenObjects(aRestoredObjects, myHiddenObjects) || isRedisplayed; - if (isRedisplayed) + if (isRedisplayed) { flushRedisplay(); + myWorkshop->viewer()->update(); + } // should be after flush of redisplay to have items object to be updated updateProcessedObjects(myItems, myItemObjects); + } myListView->removeSelectedItems(); -- 2.39.2