summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-01 11:37:58 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-01 11:37:58 +0200
commit0b4f27718420c0b27218ecb79616b4f11f59773d (patch)
treee925f3ce5d30fc41adcb4c1f29f516394e01647f /tools
parent6883325f926af425cf1db7606506f5538b7a205a (diff)
AnimationPlayer: Prevent resetting timeline when pinned (#4497)
Fixes #1019
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/plugins/animation_player_editor_plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/plugins/animation_player_editor_plugin.cpp b/tools/editor/plugins/animation_player_editor_plugin.cpp
index 67f730f300..da7c083c5a 100644
--- a/tools/editor/plugins/animation_player_editor_plugin.cpp
+++ b/tools/editor/plugins/animation_player_editor_plugin.cpp
@@ -616,6 +616,9 @@ void AnimationPlayerEditor::_blend_edited() {
void AnimationPlayerEditor::ensure_visibility() {
+ if (player && pin->is_pressed())
+ return; // another player is pinned, don't reset
+
_animation_edit();
}