0021375: EDF 1671 SMESH: Dump study of current state

Keep hyp parameters modifications done after mesh.Comput()
This commit is contained in:
eap 2012-02-20 06:59:35 +00:00
parent d632c0f379
commit 7c156331ce

View File

@ -2423,13 +2423,13 @@ void _pyHypothesis::ClearCommands()
else else
{ {
// clear my commands invoked after lastComputeOrder // clear my commands invoked after lastComputeOrder
map<TCollection_AsciiString, list< Handle(_pyCommand) > >::iterator m2c; // map<TCollection_AsciiString, list< Handle(_pyCommand) > >::iterator m2c;
for ( m2c = myMeth2Commands.begin(); m2c != myMeth2Commands.end(); ++m2c ) // for ( m2c = myMeth2Commands.begin(); m2c != myMeth2Commands.end(); ++m2c )
{ // {
list< Handle(_pyCommand)> & cmds = m2c->second; // list< Handle(_pyCommand)> & cmds = m2c->second;
if ( !cmds.empty() && cmds.back()->GetOrderNb() > lastComputeOrder ) // if ( !cmds.empty() && cmds.back()->GetOrderNb() > lastComputeOrder )
cmds.back()->Clear(); // cmds.back()->Clear();
} // }
} }
} }
_pyObject::ClearCommands(); _pyObject::ClearCommands();