mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
Prevent SIGSEGV
if ( !anActor ) anActor = SMESH::CreateActor( aMeshSObj->GetStudy(), aMeshSObj->GetID().c_str(), true ); + if ( anActor ) // actor is not created for an empty mesh + { + anActor->SetEntityMode( entities );
This commit is contained in:
parent
6399cfb3c4
commit
27a1dc566b
@ -906,10 +906,11 @@ void SMESHGUI_BaseComputeOp::computeMesh()
|
|||||||
#endif
|
#endif
|
||||||
SMESH_Actor *anActor = SMESH::FindActorByObject( myMesh );
|
SMESH_Actor *anActor = SMESH::FindActorByObject( myMesh );
|
||||||
if ( !anActor ) anActor = SMESH::CreateActor( aMeshSObj->GetStudy(), aMeshSObj->GetID().c_str(), true );
|
if ( !anActor ) anActor = SMESH::CreateActor( aMeshSObj->GetStudy(), aMeshSObj->GetID().c_str(), true );
|
||||||
|
if ( anActor ) // actor is not created for an empty mesh
|
||||||
|
{
|
||||||
anActor->SetEntityMode( entities );
|
anActor->SetEntityMode( entities );
|
||||||
SMESH::DisplayActor( SMESH::GetActiveWindow(), anActor );
|
SMESH::DisplayActor( SMESH::GetActiveWindow(), anActor );
|
||||||
|
}
|
||||||
SMESH::Update(myIObject, true);
|
SMESH::Update(myIObject, true);
|
||||||
|
|
||||||
if ( limitExceeded )
|
if ( limitExceeded )
|
||||||
|
Loading…
Reference in New Issue
Block a user