summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties_vector.cpp
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2024-08-28 03:53:28 +0100
committerSaracen <SaracenOne@gmail.com>2024-08-28 04:06:13 +0100
commite32856b5f18b9643cf0d43d4ae150fcdf65f4a92 (patch)
treec0cbad9d6e24a7c2f4572650f39a86754d4db84b /editor/editor_properties_vector.cpp
parenta2f097d603540b63f5ab7fe5331b4ac8690ed7c2 (diff)
downloadredot-engine-e32856b5f18b9643cf0d43d4ae150fcdf65f4a92.tar.gz
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 365cbc6ec8..a332704335 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;