Merge pull request #70381 from Maran23/4-x-theme-inspector-update

Queue inspector tree update when changing the theme
This commit is contained in:
Rémi Verschelde 2022-12-21 09:19:31 +01:00
commit 4685c03555
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3867,6 +3867,10 @@ void EditorInspector::_notification(int p_what) {
_update_inspector_bg();
} break;
case NOTIFICATION_THEME_CHANGED: {
update_tree();
} break;
case NOTIFICATION_ENTER_TREE: {
if (!sub_inspector) {
get_tree()->connect("node_removed", callable_mp(this, &EditorInspector::_node_removed));