Showing the changes to libraries/script-engine/src/ScriptManager.cpp (1 of 10 files). Show all
Unified · Split
| @@ -847,10 +847,6 @@ void ScriptManager::init() { · 846 unmodified lines | |||
| 847 | scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this)); | 847 | scriptEngine->registerGlobalObject("StackTest", new StackTestScriptingInterface(this)); |
| 848 | #endif | 848 | #endif |
| 849 | 849 | ||
| 850 | if (_context == CLIENT_SCRIPT) { | ||
| 851 | scriptEngine->registerGlobalObject("CanvasCommand", &_canvasCommandLibrary); | ||
| 852 | } | ||
| 853 | |||
| 854 | qCDebug(scriptengine) << "Engine initialized"; | 850 | qCDebug(scriptengine) << "Engine initialized"; |
| 855 | } | 851 | } |
| 856 | 852 | ||