summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties_vector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_properties_vector.cpp')
-rw-r--r--editor/editor_properties_vector.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/editor_properties_vector.cpp b/editor/editor_properties_vector.cpp
index a40055cf85..9ff8bf674d 100644
--- a/editor/editor_properties_vector.cpp
+++ b/editor/editor_properties_vector.cpp
@@ -130,9 +130,11 @@ void EditorPropertyVectorN::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_READY: {
if (linked->is_visible()) {
- const String key = vformat("%s:%s", get_edited_object()->get_class(), get_edited_property());
- linked->set_pressed_no_signal(EditorSettings::get_singleton()->get_project_metadata("linked_properties", key, true));
- _update_ratio();
+ if (get_edited_object()) {
+ const String key = vformat("%s:%s", get_edited_object()->get_class(), get_edited_property());
+ linked->set_pressed_no_signal(EditorSettings::get_singleton()->get_project_metadata("linked_properties", key, true));
+ _update_ratio();
+ }
}
} break;