Salome HOME
INT PAL 0052682: Local selection for ball elements has incorrect size
[modules/smesh.git] / src / OBJECT / SMESH_Actor.cxx
index 045bb9ccef4caf2d900868832b80c17da4b0b59f..65f9e87877ed7722a2c0f4cfd1579cb8f4d0134e 100644 (file)
@@ -2116,6 +2116,14 @@ double SMESH_ActorDef::GetBallScale()
 void SMESH_ActorDef::SetBallScale( double theVal )
 {
   myBallActor->SetBallScale( theVal );
+  if(SMESH_SVTKActor* aCustom = SMESH_SVTKActor::SafeDownCast( myHighlightActor )) {
+    aCustom->SetBallScale(theVal);
+  }
+  if(SMESH_SVTKActor* aCustom = SMESH_SVTKActor::SafeDownCast( myPreHighlightActor )) {
+    aCustom->SetBallScale(theVal);
+  }
+
+  Modified();
 }
 
 int SMESH_ActorDef::GetObjDimension( const int theObjId )