Merge pull request #46971 from YeldhamDev/editinspec_theme_fix

Fix EditorInspector not updating its theme on rare occasions
This commit is contained in:
Rémi Verschelde 2021-03-14 11:58:30 +01:00 committed by GitHub
commit 2e2d533b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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