Bugfix
This commit is contained in:
parent
e854571ba5
commit
5390f976cf
7 changed files with 17 additions and 1 deletions
|
@ -598,7 +598,11 @@ bool CObjectViewer::initUI (HWND parent)
|
|||
|
||||
// initialize NeL context if needed
|
||||
if (!NLMISC::INelContext::isContextInitialised())
|
||||
new NLMISC::CApplicationContext;
|
||||
{
|
||||
new NLMISC::CApplicationContext();
|
||||
nldebug("NeL Object Viewer: initUI");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
// The fonts manager
|
||||
_FontManager.setMaxMemory(2000000);
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include "nel/misc/app_context.h"
|
||||
#include "../nel_3dsmax_shared/nel_3dsmax_shared.h"
|
||||
#include <maxversion.h>
|
||||
#include "nel/misc/sheet_id.h"
|
||||
|
||||
extern ClassDesc2* GetCNelExportDesc();
|
||||
|
||||
|
@ -34,6 +35,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||
{
|
||||
new NLMISC::CLibraryContext(GetSharedNelContext());
|
||||
nldebug("NeL Export: DllMain");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
hInstance = hinstDLL; // Hang on to this DLL's instance handle.
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "nel/misc/app_context.h"
|
||||
#include "../nel_3dsmax_shared/nel_3dsmax_shared.h"
|
||||
#include <maxversion.h>
|
||||
#include "nel/misc/sheet_id.h"
|
||||
|
||||
extern ClassDesc2* GetPO2RPODesc();
|
||||
extern ClassDesc* GetRPODesc();
|
||||
|
@ -44,6 +45,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||
{
|
||||
new NLMISC::CLibraryContext(GetSharedNelContext());
|
||||
nldebug("NeL Export: DllMain");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
if(fdwReason == DLL_PROCESS_ATTACH)
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include "../nel_3dsmax_shared/nel_3dsmax_shared.h"
|
||||
|
||||
#include <maxversion.h>
|
||||
#include "nel/misc/sheet_id.h"
|
||||
|
||||
HINSTANCE hInstance;
|
||||
int controlsInit = FALSE;
|
||||
|
@ -32,6 +33,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||
{
|
||||
new NLMISC::CLibraryContext(GetSharedNelContext());
|
||||
nldebug("NeL Patch Edit: DllMain");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
if (fdwReason == DLL_PROCESS_ATTACH)
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include "nel/misc/app_context.h"
|
||||
#include "../nel_3dsmax_shared/nel_3dsmax_shared.h"
|
||||
#include <maxversion.h>
|
||||
#include "nel/misc/sheet_id.h"
|
||||
|
||||
HINSTANCE hInstance;
|
||||
int controlsInit = FALSE;
|
||||
|
@ -18,6 +19,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||
{
|
||||
new NLMISC::CLibraryContext(GetSharedNelContext());
|
||||
nldebug("NeL Patch Paint: DllMain");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
hInstance = hinstDLL;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "vertex_tree_paint.h"
|
||||
#include "../nel_3dsmax_shared/nel_3dsmax_shared.h"
|
||||
#include <maxversion.h>
|
||||
#include "nel/misc/sheet_id.h"
|
||||
|
||||
HINSTANCE hInstance;
|
||||
|
||||
|
@ -12,6 +13,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||
{
|
||||
new NLMISC::CLibraryContext(GetSharedNelContext());
|
||||
nldebug("NeL Vertex Tree Paint: DllMain");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
hInstance = hinstDLL; // Hang on to this DLL's instance handle.
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "../nel_3dsmax_shared/nel_3dsmax_shared.h"
|
||||
#include <vector>
|
||||
#include <maxversion.h>
|
||||
#include "nel/misc/sheet_id.h"
|
||||
|
||||
extern ClassDesc2* GetTile_utilityDesc();
|
||||
extern ClassDesc* GetRGBAddDesc();
|
||||
|
@ -41,6 +42,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
|
|||
{
|
||||
new NLMISC::CLibraryContext(GetSharedNelContext());
|
||||
nldebug("NeL Tile Utility: DllMain");
|
||||
NLMISC::CSheetId::initWithoutSheet();
|
||||
}
|
||||
|
||||
hInstance = hinstDLL; // Hang on to this DLL's instance handle.
|
||||
|
|
Loading…
Reference in a new issue