mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
Fix graph editor messing up when no animator selected
This commit is contained in:
parent
d36d8c4a6e
commit
3c53a71f75
@ -1223,7 +1223,7 @@ Interface.definePanels(() => {
|
||||
}
|
||||
},
|
||||
getSelectedGraphRange() {
|
||||
if (Keyframe.selected.length == 0) return null;
|
||||
if (Keyframe.selected.length == 0 || !this.graph_editor_animator) return null;
|
||||
let keyframes = this.graph_editor_animator[this.graph_editor_channel];
|
||||
if (!keyframes || keyframes.length < 2) return null;
|
||||
let range = [Infinity, -Infinity];
|
||||
|
Loading…
Reference in New Issue
Block a user