History

dropped KALILA global script attributes

Heather Anderson committed 4 years ago

Commit 457728c1 parent 9b870721 file · +0 −4Browse files

Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptManager.cpp+0−4
@@ -715,10 +715,6 @@ void ScriptManager::init() { · 714 unmodified lines
715 scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this));715 scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this));
716#endif716#endif
717 717
718 scriptEngine->globalObject().setProperty("KALILA", "isWaifu");
719 scriptEngine->globalObject().setProperty("Kute", scriptEngine->newFunction([](ScriptContext* context, ScriptEngine* engine) -> ScriptValue {
720 return context->engine()->newValue(context->argument(0).toString().toLower() == "kalila" ? true : false);
721 }));
722}718}
723 719
724// registers a global object by name720// registers a global object by name