From c4b1aa34e1ce9661d6e420ccf01b287396dcb395 Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 29 Oct 2008 12:56:56 +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..668cd13c7 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