mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 13:40:33 +05:00
0021342: EDF 1931 GEOM: The editiojn of a group has no effect after exporting it to BRep
This commit is contained in:
parent
97f4677d97
commit
e2ef963137
@ -150,8 +150,11 @@ void GEOMImpl_IInsertOperations::Export
|
|||||||
Handle(GEOM_Function) aRefFunction = theOriginal->GetLastFunction();
|
Handle(GEOM_Function) aRefFunction = theOriginal->GetLastFunction();
|
||||||
if (aRefFunction.IsNull()) return; //There is no function which creates an object to be exported
|
if (aRefFunction.IsNull()) return; //There is no function which creates an object to be exported
|
||||||
|
|
||||||
|
//Add a new result object
|
||||||
|
Handle(GEOM_Object) result = GetEngine()->AddObject(GetDocID(), GEOM_IMPORT);
|
||||||
|
|
||||||
//Add an Export function
|
//Add an Export function
|
||||||
Handle(GEOM_Function) aFunction = theOriginal->AddFunction(GEOMImpl_ExportDriver::GetID(), EXPORT_SHAPE);
|
Handle(GEOM_Function) aFunction = result->AddFunction(GEOMImpl_ExportDriver::GetID(), EXPORT_SHAPE);
|
||||||
if (aFunction.IsNull()) return;
|
if (aFunction.IsNull()) return;
|
||||||
|
|
||||||
//Check if the function is set correctly
|
//Check if the function is set correctly
|
||||||
|
Loading…
Reference in New Issue
Block a user