From 899e1d01c5e7f8847506daed00cf38beffd6d991 Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 30 Oct 2008 06:34:03 +0000 Subject: [PATCH] Fix for IPAL17729 : Vector presentation is wrong after scaling. --- src/SVTK/SVTK_Renderer.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SVTK/SVTK_Renderer.cxx b/src/SVTK/SVTK_Renderer.cxx index cab5ca695..df8e4fcb3 100644 --- a/src/SVTK/SVTK_Renderer.cxx +++ b/src/SVTK/SVTK_Renderer.cxx @@ -309,6 +309,13 @@ SVTK_Renderer { myTransform->SetMatrixScale( theScale[0], theScale[1], theScale[2] ); AdjustActors(); + + vtkActorCollection* anActors = GetDevice()->GetActors(); + anActors->InitTraversal(); + while(vtkActor* anAct = anActors->GetNextActor()) + if(SALOME_Actor* anActor = dynamic_cast(anAct)) + if(anActor->isHighlighted() && !anActor->IsInfinitive()) + anActor->highlight(true); } /*! -- 2.39.2