mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-05 23:24:18 +05:00
IPAL9384 3.c.: useless reference objects are created after execution of GEOM_tube_geom_gg2.py script
This commit is contained in:
parent
74a4d30fb0
commit
e8d58ca1fb
@ -136,8 +136,6 @@ void GEOM_Swig::createAndDisplayGO(const char* Entry)
|
|||||||
aStudyBuilder->DefineComponentInstance( father, SalomeApp_Application::orb()->object_to_string(Geom) );
|
aStudyBuilder->DefineComponentInstance( father, SalomeApp_Application::orb()->object_to_string(Geom) );
|
||||||
father->ComponentIOR(aFatherIOR);
|
father->ComponentIOR(aFatherIOR);
|
||||||
|
|
||||||
_PTR(SObject) fatherSF;
|
|
||||||
|
|
||||||
_PTR(SObject) obj = aStudy->FindObjectID(Entry);
|
_PTR(SObject) obj = aStudy->FindObjectID(Entry);
|
||||||
_PTR(GenericAttribute) anAttr;
|
_PTR(GenericAttribute) anAttr;
|
||||||
|
|
||||||
@ -155,13 +153,13 @@ void GEOM_Swig::createAndDisplayGO(const char* Entry)
|
|||||||
_PTR(AttributeName) aName ( anAttr );
|
_PTR(AttributeName) aName ( anAttr );
|
||||||
string aNameValue = aName->Value();
|
string aNameValue = aName->Value();
|
||||||
// open transaction
|
// open transaction
|
||||||
SUIT_Operation* op = new SalomeApp_ImportOperation( app );
|
/*jfa for bug IPAL9384 3)c):SUIT_Operation* op = new SalomeApp_ImportOperation( app );
|
||||||
op->start();
|
op->start();
|
||||||
|
|
||||||
_PTR(SObject) newObj1 = aStudyBuilder->NewObject(father);
|
_PTR(SObject) newObj1 = aStudyBuilder->NewObject(father);
|
||||||
aStudyBuilder->Addreference(newObj1, obj);
|
aStudyBuilder->Addreference(newObj1, obj);
|
||||||
// commit transaction
|
// commit transaction
|
||||||
op->commit();
|
op->commit();*/
|
||||||
|
|
||||||
Handle(GEOM_InteractiveObject) anIO = new GEOM_InteractiveObject(const_cast<char*>(anIORValue.c_str()),
|
Handle(GEOM_InteractiveObject) anIO = new GEOM_InteractiveObject(const_cast<char*>(anIORValue.c_str()),
|
||||||
const_cast<char*>(aFatherIOR.c_str()),
|
const_cast<char*>(aFatherIOR.c_str()),
|
||||||
|
Loading…
Reference in New Issue
Block a user