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