From b406e904ecb5066344f9d0113e19bc715b96dddd Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Sat, 13 Mar 2021 15:08:16 -0300 Subject: [PATCH] Fix EditorInspector not updating its theme on rare occasions (cherry picked from commit efa3927b49a4e3311083773779b78d3d752f2504) --- editor/editor_inspector.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index ca954a0228c..2b8d09cf8ce 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2216,11 +2216,10 @@ void EditorInspector::_notification(int p_what) { if (p_what == NOTIFICATION_READY) { EditorFeatureProfileManager::get_singleton()->connect("current_feature_profile_changed", this, "_feature_profile_changed"); + _update_inspector_bg(); } if (p_what == NOTIFICATION_ENTER_TREE) { - - _update_inspector_bg(); if (!sub_inspector) { get_tree()->connect("node_removed", this, "_node_removed"); }