mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-13 11:53:08 +05:00
improve SubMeshesComputed()
This commit is contained in:
parent
58a206c99d
commit
51593dbf13
@ -197,8 +197,8 @@ bool SMESH_subMesh::SubMeshesComputed()
|
|||||||
// one face with READY_TO_COMPUTE state in order to be able to
|
// one face with READY_TO_COMPUTE state in order to be able to
|
||||||
// recompute 3D when a locale triangle hypo changes (see PAL7428).
|
// recompute 3D when a locale triangle hypo changes (see PAL7428).
|
||||||
// So we check if mesh is really present
|
// So we check if mesh is really present
|
||||||
//bool computeOk = (sm->GetComputeState() == COMPUTE_OK);
|
bool computeOk = (sm->GetComputeState() == COMPUTE_OK ||
|
||||||
bool computeOk = ( ds && ( ds->GetNodes()->more() || ds->GetElements()->more() ));
|
(ds && ( ds->GetNodes()->more() || ds->GetElements()->more() )));
|
||||||
if (!computeOk)
|
if (!computeOk)
|
||||||
{
|
{
|
||||||
const TopoDS_Shape & ss = sm->GetSubShape();
|
const TopoDS_Shape & ss = sm->GetSubShape();
|
||||||
|
Loading…
Reference in New Issue
Block a user