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

index cab5ca695e67649dce67d9cff6276d5d3f4bd29f..df8e4fcb30b64ece8d254478ade7a530e2723af4 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);
 }
 
 /*!