diff --git a/css/panels.css b/css/panels.css index f2f2cbda..015ccdd5 100644 --- a/css/panels.css +++ b/css/panels.css @@ -1380,7 +1380,7 @@ background-color: var(--color-ui); right: 12px; margin-top: 29px; - z-index: 2; + z-index: 5; } #timeline_graph_editor_amplifier > div { position: absolute; diff --git a/js/animations/timeline.js b/js/animations/timeline.js index 0e1ee4f9..397bef8a 100644 --- a/js/animations/timeline.js +++ b/js/animations/timeline.js @@ -1180,7 +1180,11 @@ Interface.definePanels(() => { value = Math.round(value*100)/100; for (let kf of keyframes) { - let target_value = (original_values[kf.uuid] - original_range[anchor_side]) * value + original_range[anchor_side]; + let origin = original_range[anchor_side]; + if (e2.altKey) { + origin = Math.lerp(original_range[0], original_range[1], 0.5); + } + target_value = (original_values[kf.uuid] - origin) * value + origin; kf.offset(axis, -kf.get(axis) + target_value); values_changed = true; } diff --git a/js/io/formats/bedrock.js b/js/io/formats/bedrock.js index 94f25810..34e2c4ee 100644 --- a/js/io/formats/bedrock.js +++ b/js/io/formats/bedrock.js @@ -217,6 +217,7 @@ window.BedrockEntityManager = class BedrockEntityManager { } } initAnimations() { + this.initialized_animations = true; let anim_list = this.client_entity && this.client_entity.description && this.client_entity.description.animations; if (anim_list instanceof Object) { let animation_names = []; @@ -256,7 +257,6 @@ window.BedrockEntityManager = class BedrockEntityManager { } catch (err) {} }) } - this.initialized_animations = true; } findEntityTexture(mob, return_path) { if (!mob) return;