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

Avoid crash when when the editor_property_map is empty.
This commit is contained in:
Rémi Verschelde 2022-07-25 08:37:26 +02:00 committed by GitHub
commit 145304cc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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