AnimationPlayer: Prevent resetting timeline when pinned (#4497)

Fixes #1019
(cherry picked from commit 0b4f277184)
This commit is contained in:
Rémi Verschelde 2016-05-01 11:37:58 +02:00 committed by Rémi Verschelde
parent 26c2e0d09d
commit a86cfc258e
1 changed files with 3 additions and 0 deletions

View File

@ -616,6 +616,9 @@ void AnimationPlayerEditor::_blend_edited() {
void AnimationPlayerEditor::ensure_visibility() { void AnimationPlayerEditor::ensure_visibility() {
if (player && pin->is_pressed())
return; // another player is pinned, don't reset
_animation_edit(); _animation_edit();
} }