From de46b91a524c5f2c8e72b379f2900afe34ccb815 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 11 Nov 2021 10:29:17 +0800 Subject: *misc --- Editor/GUI/GUIWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Editor/GUI/GUIWindow.cpp') diff --git a/Editor/GUI/GUIWindow.cpp b/Editor/GUI/GUIWindow.cpp index 5aa598d..94dfe33 100644 --- a/Editor/GUI/GUIWindow.cpp +++ b/Editor/GUI/GUIWindow.cpp @@ -5,6 +5,7 @@ #include "Editor/Win/Win.h" #include "Runtime/Math/Math.h" #include "Runtime/Events/InputEvent.h" +#include "Runtime/Scripting/ScriptingManager.h" using namespace LuaBind; @@ -261,6 +262,8 @@ void GUIWindow::ProcessEventMessages(UINT message, WPARAM wParam, LPARAM lParam) { InputEvent ie(message, wParam, lParam, m_Handle); + SCRIPT_GLOBAL.setCurrentEvent.Invoke(0); + LuaBind::State state = GetVM()->GetCurThread(); LuaBind::MemberInvoker invoker = LuaBind::MemberInvoker(state, this); -- cgit v1.1-26-g67d0