mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-16 05:20:33 +05:00
0021562: EDF SMESH: clipping and delete mesh clipped leads to crash
This commit is contained in:
parent
0bb2ab4898
commit
b6aab8c7f6
@ -492,9 +492,6 @@ SMESH_ActorDef::~SMESH_ActorDef()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// caught by SMESHGUI::ProcessEvents() static method
|
|
||||||
this->InvokeEvent( SMESH::DeleteActorEvent, NULL );
|
|
||||||
|
|
||||||
myScalarBarActor->Delete();
|
myScalarBarActor->Delete();
|
||||||
myLookupTable->Delete();
|
myLookupTable->Delete();
|
||||||
|
|
||||||
@ -538,6 +535,17 @@ SMESH_ActorDef::~SMESH_ActorDef()
|
|||||||
myTimeStamp->Delete();
|
myTimeStamp->Delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SMESH_ActorDef::Delete()
|
||||||
|
{
|
||||||
|
// This is just to guarantee that the DeleteActorEvent (which was previously invoked
|
||||||
|
// from the actor's destructor) will be thrown before removing the actor's observers,
|
||||||
|
// that is done inside the Superclass::Delete() method but before the destructor itself
|
||||||
|
// (see the issue 0021562: EDF SMESH: clipping and delete mesh clipped leads to crash).
|
||||||
|
// The event is caught by SMESHGUI::ProcessEvents() static method.
|
||||||
|
this->InvokeEvent( SMESH::DeleteActorEvent, NULL );
|
||||||
|
|
||||||
|
Superclass::Delete();
|
||||||
|
}
|
||||||
|
|
||||||
void SMESH_ActorDef::SetPointsLabeled( bool theIsPointsLabeled )
|
void SMESH_ActorDef::SetPointsLabeled( bool theIsPointsLabeled )
|
||||||
{
|
{
|
||||||
|
@ -84,6 +84,8 @@ class SMESH_ActorDef : public SMESH_Actor
|
|||||||
public:
|
public:
|
||||||
vtkTypeMacro(SMESH_ActorDef,SMESH_Actor);
|
vtkTypeMacro(SMESH_ActorDef,SMESH_Actor);
|
||||||
|
|
||||||
|
virtual void Delete();
|
||||||
|
|
||||||
virtual void ReleaseGraphicsResources(vtkWindow *renWin);
|
virtual void ReleaseGraphicsResources(vtkWindow *renWin);
|
||||||
virtual int RenderOpaqueGeometry(vtkViewport *viewport);
|
virtual int RenderOpaqueGeometry(vtkViewport *viewport);
|
||||||
virtual int RenderTranslucentGeometry(vtkViewport *viewport);
|
virtual int RenderTranslucentGeometry(vtkViewport *viewport);
|
||||||
|
Loading…
Reference in New Issue
Block a user