Преглед на файлове

Queue inspector tree update when changing the theme.

Marius Hanl преди 2 години
родител
ревизия
c0baec410b
променени са 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));