Add revert support to SkeletonEditor.
This commit is contained in:
parent
a2f097d603
commit
e32856b5f1
3 changed files with 190 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue