mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
[bos #34270] Fix Length 2D control still displayed after mesh cleared on hypothesis change
This commit is contained in:
parent
1117f6b618
commit
5710686a4b
@ -1509,11 +1509,13 @@ void SMESH_ActorDef::SetVisibility(int theMode, bool theIsUpdateRepersentation)
|
||||
|
||||
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:
|
||||
@ -1543,8 +1545,7 @@ void SMESH_ActorDef::SetVisibility(int theMode, bool theIsUpdateRepersentation)
|
||||
break;
|
||||
default:;
|
||||
}
|
||||
if ( myFunctor && myVisualObj->GetNbEntities( myFunctor->GetType() ))
|
||||
myScalarBarActor->VisibilityOn();
|
||||
myScalarBarActor->VisibilityOn();
|
||||
}
|
||||
|
||||
if ( GetPickable( ))
|
||||
|
Loading…
Reference in New Issue
Block a user