Queue inspector tree update when changing the theme.

This commit is contained in:
Marius Hanl 2022-12-21 01:52:24 +01:00
parent 2a04b18d37
commit c0baec410b
1 changed files with 4 additions and 0 deletions

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