diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index 67658d480..a30887bb6 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -712,9 +712,7 @@ void ProcessFunction(Handle(GEOM_Function)& theFunction, { if (theFunction.IsNull()) return; - // not to process twice if (theProcessed.Contains(theFunction->GetEntry())) return; - theProcessed.Add(theFunction->GetEntry()); // pass functions, that depends on nonexisting ones bool doNotProcess = false; @@ -753,6 +751,7 @@ void ProcessFunction(Handle(GEOM_Function)& theFunction, theIgnoreObjs.insert(anObjEntry.ToCString()); return; } + theProcessed.Add(theFunction->GetEntry()); TCollection_AsciiString aDescr = theFunction->GetDescription(); if(aDescr.Length() == 0) return;