Update of the object browser added for "Import".

This commit is contained in:
mzn 2005-06-07 07:07:32 +00:00
parent 7dfcbd9821
commit 3ef9f0e473

View File

@ -471,6 +471,15 @@ bool GEOMToolsGUI::Import()
GEOM_Displayer( stud ).Display( anObj.in() ); GEOM_Displayer( stud ).Display( anObj.in() );
// update data model and object browser
SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(app);
if (anApp) {
CAM_Module* module = anApp->module( "Geometry" );
SalomeApp_Module* appMod = dynamic_cast<SalomeApp_Module*>( module );
if ( appMod )
appMod->updateObjBrowser( true );
}
anOp->commit(); anOp->commit();
} }
else { else {