Placed a check if any function is added in GetFreeBoundaries operation

This commit is contained in:
srn 2005-08-26 07:31:00 +00:00
parent fa5a40f774
commit 3a675cc5c0

View File

@ -719,6 +719,8 @@ bool GEOMImpl_IHealingOperations::GetFreeBoundary (Handle(GEOM_Object) theObject
theOpen->Append(anObj); theOpen->Append(anObj);
} }
if(!aFunction.IsNull()) {
//Make a Python command //Make a Python command
GEOM::TPythonDump pd (aFunction); GEOM::TPythonDump pd (aFunction);
@ -747,6 +749,7 @@ bool GEOMImpl_IHealingOperations::GetFreeBoundary (Handle(GEOM_Object) theObject
} }
pd << ") = geompy.GetFreeBoundary(" << theObject << ")"; pd << ") = geompy.GetFreeBoundary(" << theObject << ")";
}
SetErrorCode(OK); SetErrorCode(OK);
return true; return true;