summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorSaracenOne <SaracenOne@gmail.com>2023-02-15 15:13:50 +0000
committerSaracenOne <SaracenOne@gmail.com>2023-02-15 15:13:50 +0000
commit919df3ac0e3749cfe5a75fe0019fd2754ce67f73 (patch)
treed98dc636aa94d6acf70ded28c6b98917f2bada05 /editor
parent8c7b98d4526c6ba66d7f1636abb71ccbe54727c6 (diff)
Make animation length control respect read-only rules.
Diffstat (limited to 'editor')
-rw-r--r--editor/animation_track_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index 9f3893a5db..9eabc31621 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -1522,6 +1522,8 @@ void AnimationTimelineEdit::set_animation(const Ref<Animation> &p_animation, boo
animation = p_animation;
read_only = p_read_only;
+ length->set_read_only(read_only);
+
if (animation.is_valid()) {
len_hb->show();
if (read_only) {