Do not create the SMESH engine at module initialisation. It must be created at the first GUI command, else the loading study fail. It should fix the bug KERNEL5238.

This commit is contained in:
jrt 2004-03-15 17:17:10 +00:00
parent 02bbf97f10
commit 2d6b256c47

View File

@ -99,7 +99,7 @@ SMESHGUI_StudyAPI::SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy,
// NRI
SALOMEDS::SComponent_var father = aStudy->FindComponent("MESH");
SALOMEDS::GenericAttribute_var anAttr;
/*SALOMEDS::GenericAttribute_var anAttr;
SALOMEDS::AttributeName_var aName;
SALOMEDS::AttributePixMap_var aPixmap;
@ -115,7 +115,7 @@ SMESHGUI_StudyAPI::SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy,
aPixmap->SetPixMap( "ICON_OBJBROWSER_SMESH" );
myStudyBuilder->DefineComponentInstance(father, CompMesh );
mySComponentMesh = SALOMEDS::SComponent::_narrow( father );
mySComponentMesh = SALOMEDS::SComponent::_narrow( father );*/
}
//=======================================================================