diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-29 10:36:34 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-29 10:36:34 +0200 |
commit | ad0edb8bb62f6a128946c14aaf8721fdbc98c52a (patch) | |
tree | b468b31b6981695b1fa19e385d0aa37c7cff76bc /editor/editor_properties_vector.cpp | |
parent | 9725c03228eea5d4ba49f608e40481c5d4555eca (diff) | |
parent | e32856b5f18b9643cf0d43d4ae150fcdf65f4a92 (diff) | |
download | redot-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.cpp | 8 |
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; |