EgtInterface 1.5i3 :
- modifiche per controllo chiave di protezione.
This commit is contained in:
+3
-4
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user