From 122e9d9fc61e0366676b37a9d6f7fc30109f5d40 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 14 Oct 2019 19:34:27 +0300 Subject: [PATCH] Update viewer on history change --- src/XGUI/XGUI_ObjectsBrowser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index df92b7e2a..75543ff5c 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -227,6 +228,8 @@ void XGUI_DataTree::processHistoryChange(const QModelIndex& theIndex) update(aModel->index(i, 1, aParent)); update(aModel->index(i, 2, aParent)); } + XGUI_ObjectsBrowser* aObjBrowser = qobject_cast(parent()); + aObjBrowser->workshop()->displayer()->updateViewer(); } void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex) -- 2.39.2