mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 18:51:17 -06:00
LUA consola now queues scripts instead of runnings them
This commit is contained in:
@@ -217,7 +217,8 @@ void LuaConsole::keyboardCallback(int key, int action) {
|
||||
// ENTER == run lua script
|
||||
else {
|
||||
if (_commands.at(_activeCommand) != "") {
|
||||
OsEng.scriptEngine().runScript(_commands.at(_activeCommand));
|
||||
//OsEng.scriptEngine().runScript(_commands.at(_activeCommand));
|
||||
OsEng.scriptEngine().queueScript(_commands.at(_activeCommand));
|
||||
if (!_commandsHistory.empty() &&
|
||||
_commands.at(_activeCommand) != _commandsHistory.at(_commandsHistory.size() - 1))
|
||||
_commandsHistory.push_back(_commands.at(_activeCommand));
|
||||
|
||||
Reference in New Issue
Block a user