Fix auto-keyframing issue when creating keyframe at 0s

This commit is contained in:
JannisX11 2023-11-19 15:41:36 +01:00
parent 202255d83c
commit 6cf339e9f1

View File

@ -106,7 +106,7 @@ class GeneralAnimator {
}
result = before ? before : this.createKeyframe(null, Timeline.time, channel, false, false);
let new_keyframe;
if (settings.auto_keyframe.value && !before && !has_before) {
if (settings.auto_keyframe.value && Timeline.snapTime(Timeline.time) != 0 && !before && !has_before) {
new_keyframe = this.createKeyframe({}, 0, channel, false, false);
}
return {before, result, new_keyframe};