From: apo Date: Tue, 11 Dec 2007 09:21:01 +0000 (+0000) Subject: Fix for Bug IPAL18238 X-Git-Tag: V4_1_0rc3~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84212aa8e57b30eccea4095298497b7ba32f564f;p=modules%2Fvisu.git Fix for Bug IPAL18238 REGR: fatal error after animation --- diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index 4d41417b..90816504 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -143,6 +143,7 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase //---------------------------------------------------------------------------- ~VISU_PointsDeviceActor() { + SetInteractor( NULL ); myGeomFilter->Delete(); myEventCallbackCommand->Delete(); } @@ -156,9 +157,8 @@ class VISU_PointsDeviceActor: public VISU_GaussDeviceActorBase void* theClientData, void* theCallData) { - if ( vtkObject* anObject = reinterpret_cast( theClientData ) ) - if ( VISU_PointsDeviceActor* self = dynamic_cast( anObject ) ) - self->OnInteractorEvent( theEvent ); + if ( VISU_PointsDeviceActor* self = reinterpret_cast( theClientData ) ) + self->OnInteractorEvent( theEvent ); } @@ -260,6 +260,8 @@ VISU_ScalarMapAct { VISU_Actor::ShallowCopyPL( thePipeLine ); + myEdgeActor->GetMapper()->ScalarVisibilityOff(); + myPointsActor->DoMapperShallowCopy( thePipeLine->GetMapper(), false ); VISU::CopyMapper( mySurfaceActor->GetMapper(), thePipeLine->GetMapper(), false );