From b178951ce48ba01ac0fafb6610f07ad75784d31e Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 7 Aug 2014 15:35:00 +0400 Subject: [PATCH] Do not show a mesh when a group is created Instead, only update a visible group accoding to a changed contents. --- src/SMESHGUI/SMESHGUI_GroupDlg.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 7d2f4b1ae..e7b45e889 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -1155,9 +1155,10 @@ bool SMESHGUI_GroupDlg::onApply() if ( aMeshGroupSO ) { - if(SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str())) { + if ( SMESH_Actor *anActor = SMESH::FindActorByEntry(aMeshGroupSO->GetID().c_str())) + { + Handle(SALOME_InteractiveObject) anIO = anActor->getIO(); if ( isConversion ) { // need to reset TVisualObj and actor - Handle(SALOME_InteractiveObject) anIO = anActor->getIO(); SMESH::RemoveVisualObjectWithActors( anIO->getEntry(), true ); SMESH::Update( anIO,true); myActorsList.clear(); @@ -1183,12 +1184,14 @@ bool SMESHGUI_GroupDlg::onApply() anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B, delta ); break; break; } + // update a visible group accoding to a changed contents + if ( !isConversion && anActor->GetVisibility() ) + SMESH::Update( anIO, true ); } } } SMESHGUI::Modified(); mySMESHGUI->updateObjBrowser(true); - SMESH::UpdateView(); // asv: fix of BUG PAL5515 mySelectionMgr->clearSelected(); if( LightApp_Application* anApp = -- 2.39.2