mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-28 15:09:36 -06:00
Updated module loading to use a common lua state that has openspace lua functions (closing #100)
This commit is contained in:
@@ -470,8 +470,8 @@ void ScriptEngine::remapPrintFunction() {
|
||||
|
||||
void ScriptEngine::initializeLuaState(lua_State* state) {
|
||||
LDEBUG("Create openspace base library");
|
||||
lua_newtable(_state);
|
||||
lua_setglobal(_state, _openspaceLibraryName.c_str());
|
||||
lua_newtable(state);
|
||||
lua_setglobal(state, _openspaceLibraryName.c_str());
|
||||
|
||||
LDEBUG("Add OpenSpace modules");
|
||||
for (const LuaLibrary& lib : _registeredLibraries)
|
||||
|
||||
Reference in New Issue
Block a user