-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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() );
}
//=============================================================================