summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-07-25 08:37:26 +0200
committerGitHub <noreply@github.com>2022-07-25 08:37:26 +0200
commit145304cc851e62b8e03c1851b1e80329e8425e15 (patch)
tree507f4d25e4826abbef37aae7195471931f5b1623
parenta9147c5544ffcf08dfb41b2a31963f152fe61c4c (diff)
parentfb2b26eec399b88e2191e375eb6ba035a8405e87 (diff)
Merge pull request #63416 from V-Sekai/bone-map-empty-crash
Avoid crash when when the editor_property_map is empty.
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 1711b23547..b610e09545 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -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();