summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties_vector.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-29 10:36:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-29 10:36:34 +0200
commitad0edb8bb62f6a128946c14aaf8721fdbc98c52a (patch)
treeb468b31b6981695b1fa19e385d0aa37c7cff76bc /editor/editor_properties_vector.cpp
parent9725c03228eea5d4ba49f608e40481c5d4555eca (diff)
parente32856b5f18b9643cf0d43d4ae150fcdf65f4a92 (diff)
downloadredot-engine-ad0edb8bb62f6a128946c14aaf8721fdbc98c52a.tar.gz
Merge pull request #96196 from SaracenOne/bone_editor_revert
Add Revert support to SkeletonEditor.
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;