design blocks: move globals behind accessor functions

Prepare for lazy loading
This commit is contained in:
Mike Williams
2024-09-10 15:50:03 -04:00
parent b2dda11fae
commit 2eec2489ea
8 changed files with 38 additions and 23 deletions
+1 -1
View File
@@ -430,7 +430,7 @@ DESIGN_BLOCK_LIB_TABLE* PROJECT::DesignBlockLibs()
{
try
{
tbl = new DESIGN_BLOCK_LIB_TABLE( &GDesignBlockTable );
tbl = new DESIGN_BLOCK_LIB_TABLE( &DESIGN_BLOCK_LIB_TABLE::GetGlobalLibTable() );
tbl->Load( DesignBlockLibTblName() );
SetElem( ELEM::DESIGN_BLOCK_LIB_TABLE, tbl );