summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-16 11:01:38 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-16 11:01:38 +0100
commit02ca6689c46a9e61227f2adcbb4456870f1dc1a6 (patch)
treef943b6457deea756cf603aa1419910d5ff93a876
parentf3e2e4be37e1c7afc1ac593495ae5a4b7b64eccc (diff)
parent919df3ac0e3749cfe5a75fe0019fd2754ce67f73 (diff)
Merge pull request #73369 from SaracenOne/animation_length_read_only
Make animation length control respect read-only rules.
-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) {