EgtInterface 1.5i3 :

- modifiche per controllo chiave di protezione.
This commit is contained in:
Dario Sassi
2014-09-15 07:05:15 +00:00
parent 2fce436ae7
commit 7ff53dc0d7
5 changed files with 15 additions and 5 deletions
+3 -4
View File
@@ -30,9 +30,6 @@ using namespace std ;
int
__stdcall EgtInitGeomDB( void)
{
// inizializzazioni DB geometrico
PtrOwner<IGeomDB> pGeomDB( CreateGeomDB()) ;
VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", 0)
// creo e recupero un contesto libero
int nGseCtx = CreateGseContext() ;
if ( nGseCtx == 0) {
@@ -40,11 +37,13 @@ __stdcall EgtInitGeomDB( void)
return 0 ;
}
GseContext* pGseCtx = GetGseContext( nGseCtx) ;
// inizializzazioni DB geometrico
PtrOwner<IGeomDB> pGeomDB( CreateGeomDB()) ;
VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", nGseCtx)
// inserisco il GeomDB nel contesto
pGseCtx->m_pGeomDB = Release( pGeomDB) ;
pGseCtx->m_pGeomDB->Init() ;
pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ;
// log avvio DB geometrico
string sLog = "GeomDB started " + ToString( nGseCtx) ;
LOG_INFO( GetLogger(), sLog.c_str())