From: eap Date: Thu, 7 Aug 2014 11:35:00 +0000 (+0400) Subject: Do not show a mesh when a group is created X-Git-Tag: V7_5_0a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b178951ce48ba01ac0fafb6610f07ad75784d31e;p=modules%2Fsmesh.git Do not show a mesh when a group is created Instead, only update a visible group accoding to a changed contents. --- 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 =