]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for IPAL17729 : Vector presentation is wrong after scaling.
authormkr <mkr@opencascade.com>
Wed, 29 Oct 2008 12:56:56 +0000 (12:56 +0000)
committermkr <mkr@opencascade.com>
Wed, 29 Oct 2008 12:56:56 +0000 (12:56 +0000)
src/SVTK/SVTK_Renderer.cxx

index cab5ca695e67649dce67d9cff6276d5d3f4bd29f..668cd13c7c964a8d1a0ab4d15e645ab5308ec285 100644 (file)
@@ -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<SALOME_Actor*>(anAct))
+      if(anActor->isHighlighted() && !anActor->IsInfinitive())
+       anActor->highlight(true);
 }
 
 /*!