Browse Source

Merge pull request #63416 from V-Sekai/bone-map-empty-crash

Avoid crash when when the editor_property_map is empty.
Rémi Verschelde 3 years ago
parent
commit
145304cc85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/editor_inspector.cpp

+ 1 - 1
editor/editor_inspector.cpp

@@ -3558,7 +3558,7 @@ void EditorInspector::_notification(int p_what) {
 				if (refresh_countdown <= 0) {
 				if (refresh_countdown <= 0) {
 					for (const KeyValue<StringName, List<EditorProperty *>> &F : editor_property_map) {
 					for (const KeyValue<StringName, List<EditorProperty *>> &F : editor_property_map) {
 						for (EditorProperty *E : F.value) {
 						for (EditorProperty *E : F.value) {
-							if (!E->is_cache_valid()) {
+							if (E && !E->is_cache_valid()) {
 								E->update_property();
 								E->update_property();
 								E->update_revert_and_pin_status();
 								E->update_revert_and_pin_status();
 								E->update_cache();
 								E->update_cache();