diff options
author | Marc Gilleron <marc.gilleron@gmail.com> | 2019-02-01 15:30:44 +0100 |
---|---|---|
committer | Marc Gilleron <marc.gilleron@gmail.com> | 2019-02-01 15:30:44 +0100 |
commit | fb2eb66e40269d91b8e2392d52fff2a54cb32ebd (patch) | |
tree | 180e85c499929b9413f5404f19b9623fe8943c82 /editor | |
parent | 463123a661151f119132f2ee9af78925a58a068a (diff) |
Fixed uninitialized log member due to THEME_CHANGED notification
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_log.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index 803d7e10f7..1658f19ccc 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -132,7 +132,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); @@ -163,6 +162,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); } |