Fix EditorInspector not updating its theme on rare occasions
This commit is contained in:
parent
942f5f0cb2
commit
efa3927b49
1 changed files with 1 additions and 1 deletions
|
@ -2436,10 +2436,10 @@ void EditorInspector::_notification(int p_what) {
|
||||||
if (p_what == NOTIFICATION_READY) {
|
if (p_what == NOTIFICATION_READY) {
|
||||||
EditorFeatureProfileManager::get_singleton()->connect("current_feature_profile_changed", callable_mp(this, &EditorInspector::_feature_profile_changed));
|
EditorFeatureProfileManager::get_singleton()->connect("current_feature_profile_changed", callable_mp(this, &EditorInspector::_feature_profile_changed));
|
||||||
set_process(is_visible_in_tree());
|
set_process(is_visible_in_tree());
|
||||||
|
_update_inspector_bg();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_what == NOTIFICATION_ENTER_TREE) {
|
if (p_what == NOTIFICATION_ENTER_TREE) {
|
||||||
_update_inspector_bg();
|
|
||||||
if (!sub_inspector) {
|
if (!sub_inspector) {
|
||||||
get_tree()->connect("node_removed", callable_mp(this, &EditorInspector::_node_removed));
|
get_tree()->connect("node_removed", callable_mp(this, &EditorInspector::_node_removed));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue