Fixed uninitialized log member due to THEME_CHANGED notification

(cherry picked from commit fb2eb66e40)
This commit is contained in:
Marc Gilleron 2019-02-01 15:30:44 +01:00 committed by Rémi Verschelde
parent aca8176341
commit 0f2e3976d0
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}