if ( !GetMeshDS()->IsUsedHypothesis( hyp ))
return;
- if (_callUp && hyp)
+ bool toCallBack = true;
+ if ( _callUp && hyp && NbNodes() == 0 ) // for not loaded mesh (#16648)
+ {
_callUp->HypothesisModified( hyp->GetID() );
+ toCallBack = ( NbNodes() > 0 );
+ }
SMESH_Algo *algo;
const SMESH_HypoFilter* compatibleHypoKind;
}
HasModificationsToDiscard(); // to reset _isModified flag if mesh becomes empty
GetMeshDS()->Modified();
+
+ if ( _callUp && hyp && toCallBack )
+ _callUp->HypothesisModified( hyp->GetID() );
}
//=============================================================================