Fix #2108 Pasting keyframe over other deletes original kf

This commit is contained in:
JannisX11 2023-11-24 23:20:07 +01:00
parent 5b684beb4a
commit 6a2679578e

View File

@ -81,7 +81,7 @@ class GeneralAnimator {
var deleted = [];
delete keyframe.time_before;
keyframe.replaceOthers(deleted);
if (undo) {
if (deleted.length && Undo.current_save) {
Undo.addKeyframeCasualties(deleted);
}
Animation.selected.setLength();