From 84212aa8e57b30eccea4095298497b7ba32f564f Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 11 Dec 2007 09:21:01 +0000 Subject: [PATCH] Fix for Bug IPAL18238 REGR: fatal error after animation --- src/OBJECT/VISU_ScalarMapAct.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ); -- 2.39.2