my3DExtActor->VisibilityOff();
myScalarBarActor->VisibilityOff();
+
if ( GetVisibility() ) {
if ( theIsUpdateRepersentation )
SetRepresentation(GetRepresentation());
-
- if(myControlMode != eNone) {
+
+ // Avoid calling VisibilityOn of ExtActor after editing hypothesis. Use the same criteria than scalarBarActor
+ if( myControlMode != eNone && myFunctor && myVisualObj->GetNbEntities( myFunctor->GetType() ) ) {
switch(myControlMode) {
case eFreeNodes:
case eCoincidentNodes:
break;
default:;
}
- if ( myFunctor && myVisualObj->GetNbEntities( myFunctor->GetType() ))
- myScalarBarActor->VisibilityOn();
- }
+ myScalarBarActor->VisibilityOn();
+ }
if ( GetPickable( ))
myPickableActor->VisibilityOn();