diff options
author | chai <chaifix@163.com> | 2021-11-13 17:29:45 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-13 17:29:45 +0800 |
commit | 73dc62da054cbc18afc694f803ebff7fe24f4eca (patch) | |
tree | 5ed1fa0166891569e3dd6f3fa9d2ec2a83754624 /Editor/GUI/GUIWindow.cpp | |
parent | 9b1f8214eea0c86d41f903a5feba9aac78603df1 (diff) |
* split
Diffstat (limited to 'Editor/GUI/GUIWindow.cpp')
-rw-r--r-- | Editor/GUI/GUIWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Editor/GUI/GUIWindow.cpp b/Editor/GUI/GUIWindow.cpp index aaab6a8..19ceb85 100644 --- a/Editor/GUI/GUIWindow.cpp +++ b/Editor/GUI/GUIWindow.cpp @@ -168,6 +168,8 @@ LRESULT CALLBACK GUIWindow::GUIViewWndProc(HWND hWnd, UINT message, WPARAM wPara // self->RequestRepaint(); // } + self->DoPaint(); + // // Update the scene so that scripts marked with [ExecuteInEditMode] are able to react to screen size changes // GetApplication().SetSceneRepaintDirty(); //} @@ -269,6 +271,8 @@ void GUIWindow::ProcessEventMessages(UINT message, WPARAM wParam, LPARAM lParam) SCRIPT_GLOBAL.guiBeginOnGUI.Invoke(state, 0); + SetAsRenderContext(); + LuaBind::MemberInvoker invoker = LuaBind::MemberInvoker(state, this); invoker.member = m_Script; invoker.method = "OnGUI"; |