浏览代码

AnimationPlayer: Prevent resetting timeline when pinned (#4497)

Fixes #1019
Rémi Verschelde 9 年之前
父节点
当前提交
0b4f277184
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/editor/plugins/animation_player_editor_plugin.cpp

+ 3 - 0
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();
 }