diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-14 11:58:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 11:58:30 +0100 |
commit | 2e2d533b481aa4126030ae2b1e2a5aa7dd3c3a00 (patch) | |
tree | c83bdd43d818d81beccd3bf74d7bc175bb3b6919 | |
parent | adeae2deae12a01a490cd650f2a52e653d298c4e (diff) | |
parent | efa3927b49a4e3311083773779b78d3d752f2504 (diff) |
Merge pull request #46971 from YeldhamDev/editinspec_theme_fix
Fix EditorInspector not updating its theme on rare occasions
-rw-r--r-- | editor/editor_inspector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 74b874b54e..9b03731fd8 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2436,10 +2436,10 @@ void EditorInspector::_notification(int p_what) { if (p_what == NOTIFICATION_READY) { EditorFeatureProfileManager::get_singleton()->connect("current_feature_profile_changed", callable_mp(this, &EditorInspector::_feature_profile_changed)); set_process(is_visible_in_tree()); + _update_inspector_bg(); } if (p_what == NOTIFICATION_ENTER_TREE) { - _update_inspector_bg(); if (!sub_inspector) { get_tree()->connect("node_removed", callable_mp(this, &EditorInspector::_node_removed)); } |