diff options
author | chai <chaifix@163.com> | 2021-11-19 15:33:48 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-19 15:33:48 +0800 |
commit | 1cd31d14c95f9d52e30fbc611df5da4b46f048d9 (patch) | |
tree | 86dbda850f9b8ed26b152c6521adc0a777d6563a /Editor/Scripting | |
parent | 2ab7fad7b308debba0aacbf76831569f360d19a0 (diff) |
*misc
Diffstat (limited to 'Editor/Scripting')
-rw-r--r-- | Editor/Scripting/GUI/EditorGUI.bind.cpp | 2 | ||||
-rw-r--r-- | Editor/Scripting/Window/ContainerWindow.bind.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Editor/Scripting/GUI/EditorGUI.bind.cpp b/Editor/Scripting/GUI/EditorGUI.bind.cpp index b51e019..e0b94e0 100644 --- a/Editor/Scripting/GUI/EditorGUI.bind.cpp +++ b/Editor/Scripting/GUI/EditorGUI.bind.cpp @@ -80,6 +80,8 @@ static int Text(lua_State* L) const UITextMesh* tm = g_TextMeshGenerator.GetTextMesh(str, font, pixelSize, lineHeight, color, (ETextAnchor)anchor, (ETextAlignment)alignment, wordwrap, preferred); tm->Draw(); + WipeGLError(); + return 0; } diff --git a/Editor/Scripting/Window/ContainerWindow.bind.cpp b/Editor/Scripting/Window/ContainerWindow.bind.cpp index f459c85..f3a8cc7 100644 --- a/Editor/Scripting/Window/ContainerWindow.bind.cpp +++ b/Editor/Scripting/Window/ContainerWindow.bind.cpp @@ -62,7 +62,7 @@ LUA_BIND_IMPL_METHOD(ContainerWindow, _GetSize) { LUA_BIND_PREPARE(L, ContainerWindow); - state.PushLuaObject(self->GetSize()); + state.PushLuaObject<Vector2f>(self->GetSize()); return 1; } |