Merge pull request #73369 from SaracenOne/animation_length_read_only

Make animation length control respect read-only rules.
This commit is contained in:
Rémi Verschelde 2023-02-16 11:01:38 +01:00
commit 02ca6689c4
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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) {