diff options
Diffstat (limited to 'platform/web/web_main.cpp')
-rw-r--r-- | platform/web/web_main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/web/web_main.cpp b/platform/web/web_main.cpp index ac8e11f400..ddcbc40727 100644 --- a/platform/web/web_main.cpp +++ b/platform/web/web_main.cpp @@ -40,6 +40,10 @@ #include "scene/main/scene_tree.h" #include "scene/main/window.h" // SceneTree only forward declares it. +#ifdef TOOLS_ENABLED +#include "editor/web_tools_editor_plugin.h" +#endif + #include <emscripten/emscripten.h> #include <stdlib.h> @@ -106,6 +110,10 @@ void main_loop_callback() { extern EMSCRIPTEN_KEEPALIVE int godot_web_main(int argc, char *argv[]) { os = new OS_Web(); +#ifdef TOOLS_ENABLED + WebToolsEditorPlugin::initialize(); +#endif + // We must override main when testing is enabled TEST_MAIN_OVERRIDE |