浏览代码

Made the Pin button disable when no AnimationPlayer is selected.

Michael Alexsander Silva Dias 7 年之前
父节点
当前提交
75897710b3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/animation_player_editor_plugin.cpp

+ 1 - 0
editor/plugins/animation_player_editor_plugin.cpp

@@ -828,6 +828,7 @@ void AnimationPlayerEditor::_update_player() {
 	save_anim->set_disabled(animlist.size() == 0);
 	tool_anim->set_disabled(player == NULL);
 	onion_skinning->set_disabled(player == NULL);
+	pin->set_disabled(player == NULL);
 
 	int active_idx = -1;
 	for (List<StringName>::Element *E = animlist.front(); E; E = E->next()) {