Merge pull request #28150 from homer666/animationplayer-snap-mode-disable

Fix AnimationPlayer snap mode dropdown behaviour
This commit is contained in:
Rémi Verschelde 2019-04-18 13:00:37 +02:00 committed by GitHub
commit 8f6e548ab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2540,7 +2540,7 @@ void AnimationTrackEditor::set_animation(const Ref<Animation> &p_anim) {
step->set_block_signals(false);
step->set_read_only(false);
snap->set_disabled(false);
snap_mode->set_disabled(true);
snap_mode->set_disabled(false);
} else {
hscroll->hide();
edit->set_disabled(true);
@ -2549,7 +2549,7 @@ void AnimationTrackEditor::set_animation(const Ref<Animation> &p_anim) {
step->set_block_signals(false);
step->set_read_only(true);
snap->set_disabled(true);
snap_mode->set_disabled(false);
snap_mode->set_disabled(true);
}
}