From: eap Date: Wed, 15 Jun 2011 12:07:46 +0000 (+0000) Subject: fix regression of smesh/3D_mesh_NETGEN/E8 X-Git-Tag: V6_3_1rc1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f70b1805f0b9768f976b984fdd5e6a1c79d0a78f;p=modules%2Fsmesh.git fix regression of smesh/3D_mesh_NETGEN/E8 --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index d4ef34bab..1bace2c2e 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -1688,7 +1688,7 @@ void SMESH_MeshEditor::SplitVolumesIntoTetra (const TIDSortedElemSet & theElems, swap( n2, n3 ); triangles.push_back( helper.AddFace( n1,n2,n3 )); - if ( n3->getshapeId() < 1 ) + if ( fSubMesh && n3->getshapeId() < 1 ) fSubMesh->AddNode( n3 ); } }