mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 18:41:29 +00:00
Fix animaiton key icon not show on inspector
This commit is contained in:
parent
8cbe2105f5
commit
63d1b35c59
1 changed files with 9 additions and 1 deletions
|
|
@ -328,6 +328,9 @@ void AnimationPlayerEditor::_animation_selected(int p_which) {
|
||||||
}
|
}
|
||||||
|
|
||||||
autoplay->set_pressed(current == player->get_autoplay());
|
autoplay->set_pressed(current == player->get_autoplay());
|
||||||
|
|
||||||
|
AnimationPlayerEditor::singleton->get_track_editor()->update_keying();
|
||||||
|
EditorNode::get_singleton()->update_keying();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationPlayerEditor::_animation_new() {
|
void AnimationPlayerEditor::_animation_new() {
|
||||||
|
|
@ -850,8 +853,11 @@ void AnimationPlayerEditor::_update_player() {
|
||||||
active_idx = animation->get_item_count() - 1;
|
active_idx = animation->get_item_count() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!player)
|
if (!player) {
|
||||||
|
AnimationPlayerEditor::singleton->get_track_editor()->update_keying();
|
||||||
|
EditorNode::get_singleton()->update_keying();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
updating = false;
|
updating = false;
|
||||||
if (active_idx != -1) {
|
if (active_idx != -1) {
|
||||||
|
|
@ -864,6 +870,8 @@ void AnimationPlayerEditor::_update_player() {
|
||||||
animation->select(0);
|
animation->select(0);
|
||||||
autoplay->set_pressed(animation->get_item_text(0) == player->get_autoplay());
|
autoplay->set_pressed(animation->get_item_text(0) == player->get_autoplay());
|
||||||
_animation_selected(0);
|
_animation_selected(0);
|
||||||
|
} else {
|
||||||
|
_animation_selected(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//pause->set_pressed(player->is_paused());
|
//pause->set_pressed(player->is_paused());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue