]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
52567: Transformation operations does not work for Group of Balls
authoreap <eap@opencascade.com>
Thu, 30 Oct 2014 15:47:36 +0000 (18:47 +0300)
committereap <eap@opencascade.com>
Thu, 30 Oct 2014 15:47:36 +0000 (18:47 +0300)
src/SMESHGUI/SMESHGUI_AddMeshElementDlg.cxx

index 79588047cb0abfb36b46746cfd9387503fc559e0..cbc584da5a2d85f976b4b9ad0188877b800dee6c 100644 (file)
@@ -586,6 +586,7 @@ void SMESHGUI_AddMeshElementDlg::ClickOnApply()
     SMESH::long_array_var anIdList = new SMESH::long_array;
     anIdList->length( 1 );
     anIdList[0] = -1;
+    const bool onlyNodesInMesh = ( myMesh->NbElements() == 0 );
 
     switch (myElementType) {
     case SMDSAbs_0DElement:
@@ -645,8 +646,10 @@ void SMESHGUI_AddMeshElementDlg::ClickOnApply()
     mySelectionMgr->setSelectedObjects( aList, false );
 
     mySimulation->SetVisibility(false);
+    if ( onlyNodesInMesh )
+      myActor->SetRepresentation( SMESH_Actor::eEdge ); // wireframe
     SMESH::UpdateView();
-    
+
     buttonOk->setEnabled(false);
     buttonApply->setEnabled(false);