Merge pull request #30796 from YeldhamDev/anim_undo_dict_duplicate

Fix undo problems with method and transform tracks in the animation editor
This commit is contained in:
Rémi Verschelde 2019-07-25 08:36:37 +02:00 committed by GitHub
commit b662bc65bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,7 +170,7 @@ public:
case Animation::TYPE_TRANSFORM: {
Dictionary d_old = animation->track_get_key_value(track, key);
Dictionary d_new = d_old;
Dictionary d_new = d_old.duplicate();
d_new[p_name] = p_value;
setting = true;
undo_redo->create_action(TTR("Anim Change Transform"));
@ -209,7 +209,7 @@ public:
case Animation::TYPE_METHOD: {
Dictionary d_old = animation->track_get_key_value(track, key);
Dictionary d_new = d_old;
Dictionary d_new = d_old.duplicate();
bool change_notify_deserved = false;
bool mergeable = false;
@ -840,7 +840,7 @@ public:
case Animation::TYPE_TRANSFORM: {
Dictionary d_old = animation->track_get_key_value(track, key);
Dictionary d_new = d_old;
Dictionary d_new = d_old.duplicate();
d_new[p_name] = p_value;
if (!setting) {
@ -874,7 +874,7 @@ public:
case Animation::TYPE_METHOD: {
Dictionary d_old = animation->track_get_key_value(track, key);
Dictionary d_new = d_old;
Dictionary d_new = d_old.duplicate();
bool mergeable = false;