From b742df475446566e44a011eecd82d4507c04ad44 Mon Sep 17 00:00:00 2001 From: vsv Date: Sat, 27 Dec 2014 11:09:47 +0300 Subject: [PATCH] Correct of compilation errors --- src/XGUI/XGUI_Displayer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index ff5bed22f..1e65fb9e2 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -629,12 +629,14 @@ void XGUI_Displayer::setDisplayMode(ObjectPtr theObject, DisplayMode theMode, bo myWorkshop->selector()->selection()->selectedOwners(aSelectedOwners); closeLocalContexts(false); } - aContext->SetDisplayMode(aAISIO, theMode, toUpdate); + aContext->SetDisplayMode(aAISIO, theMode, false); if (aCanBeShaded) { openLocalContext(); activateObjects(myActiveSelectionModes); - myWorkshop->selector()->setSelectedOwners(aSelectedOwners); + myWorkshop->selector()->setSelectedOwners(aSelectedOwners, false); } + if (toUpdate) + updateViewer(); } XGUI_Displayer::DisplayMode XGUI_Displayer::displayMode(ObjectPtr theObject) const -- 2.39.2