mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
PAL10953. Fix GetSubmeshComputed(): there may be elements but no nodes in a submesh
This commit is contained in:
parent
5c933ecde0
commit
96874fc4b6
@ -202,7 +202,7 @@ bool SMESH_subMesh::SubMeshesComputed()
|
||||
// recompute 3D when a locale triangle hypo changes (see PAL7428).
|
||||
// So we check if mesh is really present
|
||||
//bool computeOk = (sm->GetComputeState() == COMPUTE_OK);
|
||||
bool computeOk = ( ds && ds->GetNodes()->more() );
|
||||
bool computeOk = ( ds && ( ds->GetNodes()->more() || ds->GetElements()->more() ));
|
||||
if (!computeOk)
|
||||
{
|
||||
const TopoDS_Shape & ss = sm->GetSubShape();
|
||||
|
Loading…
Reference in New Issue
Block a user