From 0f2e3976d0bf80369f22041e0228b31fa8d2af06 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Fri, 1 Feb 2019 15:30:44 +0100 Subject: [PATCH] Fixed uninitialized log member due to THEME_CHANGED notification (cherry picked from commit fb2eb66e40269d91b8e2392d52fff2a54cb32ebd) --- editor/editor_log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index a4d1e670cc8..a042c10824f 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -149,7 +149,6 @@ void EditorLog::_bind_methods() { EditorLog::EditorLog() { VBoxContainer *vb = this; - add_constant_override("separation", get_constant("separation", "VBoxContainer")); HBoxContainer *hb = memnew(HBoxContainer); vb->add_child(hb); @@ -181,6 +180,8 @@ EditorLog::EditorLog() { current = Thread::get_caller_id(); + add_constant_override("separation", get_constant("separation", "VBoxContainer")); + EditorNode::get_undo_redo()->set_commit_notify_callback(_undo_redo_cbk, this); }