mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Fix EditorInspector not updating its theme on rare occasions
(cherry picked from commit efa3927b49)
This commit is contained in:
committed by
Rémi Verschelde
parent
4628ab2a15
commit
b406e904ec
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user