mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +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
|
||||
SMESH_Actor *anActor = SMESH::FindActorByObject( myMesh );
|
||||
if ( !anActor ) anActor = SMESH::CreateActor( aMeshSObj->GetStudy(), aMeshSObj->GetID().c_str(), true );
|
||||
|
||||
anActor->SetEntityMode( entities );
|
||||
SMESH::DisplayActor( SMESH::GetActiveWindow(), anActor );
|
||||
|
||||
if ( anActor ) // actor is not created for an empty mesh
|
||||
{
|
||||
anActor->SetEntityMode( entities );
|
||||
SMESH::DisplayActor( SMESH::GetActiveWindow(), anActor );
|
||||
}
|
||||
SMESH::Update(myIObject, true);
|
||||
|
||||
if ( limitExceeded )
|
||||
|
Loading…
Reference in New Issue
Block a user