Salome HOME
020749: EDF 1291 SMESH : Create 2D Mesh from 3D improvement
[modules/smesh.git] / src / OBJECT / SMESH_Actor.cxx
index c86639b640903b8dcfa304620e34d0b804d5316a..df648c4589c67ce1cbcd549a9711d6dcbf416824 100644 (file)
@@ -104,7 +104,7 @@ SMESH_Actor* SMESH_Actor::New(TVisualObjPtr theVisualObj,
                               int theIsClear)
 {
   SMESH_ActorDef* anActor = NULL;
-  if(theVisualObj->GetNbEntities(SMDSAbs_Node) > 0 ) {
+  if(theVisualObj->IsValid() ) {
     anActor = SMESH_ActorDef::New();
     if(!anActor->Init(theVisualObj,theEntry,theName,theIsClear)){
       anActor->Delete();