浏览代码

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

Queue inspector tree update when changing the theme
Rémi Verschelde 2 年之前
父节点
当前提交
4685c03555
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/editor_inspector.cpp

+ 4 - 0
editor/editor_inspector.cpp

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