mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +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
@ -1508,12 +1508,14 @@ void SMESH_ActorDef::SetVisibility(int theMode, bool theIsUpdateRepersentation)
|
|||||||
my3DExtActor->VisibilityOff();
|
my3DExtActor->VisibilityOff();
|
||||||
|
|
||||||
myScalarBarActor->VisibilityOff();
|
myScalarBarActor->VisibilityOff();
|
||||||
|
|
||||||
|
|
||||||
if ( GetVisibility() ) {
|
if ( GetVisibility() ) {
|
||||||
if ( theIsUpdateRepersentation )
|
if ( theIsUpdateRepersentation )
|
||||||
SetRepresentation(GetRepresentation());
|
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) {
|
switch(myControlMode) {
|
||||||
case eFreeNodes:
|
case eFreeNodes:
|
||||||
case eCoincidentNodes:
|
case eCoincidentNodes:
|
||||||
@ -1543,9 +1545,8 @@ void SMESH_ActorDef::SetVisibility(int theMode, bool theIsUpdateRepersentation)
|
|||||||
break;
|
break;
|
||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
if ( myFunctor && myVisualObj->GetNbEntities( myFunctor->GetType() ))
|
myScalarBarActor->VisibilityOn();
|
||||||
myScalarBarActor->VisibilityOn();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( GetPickable( ))
|
if ( GetPickable( ))
|
||||||
myPickableActor->VisibilityOn();
|
myPickableActor->VisibilityOn();
|
||||||
|
Loading…
Reference in New Issue
Block a user