13
0

make sandbox = false, for scripts called by Editor::trigger_script_by_name()

This commit is contained in:
Nikolaus Gullotta 2018-07-16 13:12:05 -05:00
parent 3700ef4af6
commit 854df0ae24

View File

@ -764,7 +764,7 @@ Editor::trigger_script_by_name (const std::string script_name)
LuaState lua;
lua.Print.connect (&_lua_print); //ToDo
lua.sandbox (true);
lua.sandbox (false);
lua_State* L = lua.getState();
LuaInstance::register_classes (L);
LuaBindings::set_session (L, _session);