mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix auto-keyframing issue when creating keyframe at 0s
This commit is contained in:
parent
202255d83c
commit
6cf339e9f1
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user