From 41374259064188fb58b05b1ff32bf75ad75977d0 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 17 Apr 2015 18:10:05 +0300 Subject: [PATCH] Issue #413: Update presentation on change display mode --- src/XGUI/XGUI_Displayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 58e16daa2..dd564aba0 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -670,6 +670,8 @@ void XGUI_Displayer::setDisplayMode(ObjectPtr theObject, DisplayMode theMode, bo closeLocalContexts(false); } aContext->SetDisplayMode(aAISIO, theMode, false); + // Redisplay in order to update new mode because it could be not computed before + aContext->Redisplay(aAISIO, false); if (aCanBeShaded) { openLocalContext(); activateObjects(myActiveSelectionModes); -- 2.39.2