From e317d079e75ce9c68dc2c834d9b7a805c557cd87 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 3 Feb 2021 15:33:11 +0300 Subject: [PATCH] Fix pb with broken presentations in VTK viewer --- src/LightApp/LightApp_Application.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index f28b5b14f..084cfad81 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -5247,8 +5247,9 @@ void LightApp_Application::updatePresentations( const QString& theComponent, if ( aVM ) { SALOME_View* aView = dynamic_cast(aVM); if ( aView ) { - if ( aDisplayer->IsDisplayed( anEntry, aView ) ) { - aDisplayer->Erase( anEntry, false, false, aView ); + bool isDisp = aDisplayer->IsDisplayed( anEntry, aView ); + aDisplayer->Erase( anEntry, true, false, aView ); + if ( isDisp ) { aDisplayer->Display( anEntry, false, aView ); } } -- 2.39.2