mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #27676 from qarmin/small_fixes_2
Small fixes to static analyzer bugs
This commit is contained in:
@@ -846,6 +846,12 @@ void AnimationPlayerEditor::_update_player() {
|
||||
onion_skinning->set_disabled(player == NULL);
|
||||
pin->set_disabled(player == NULL);
|
||||
|
||||
if (!player) {
|
||||
AnimationPlayerEditor::singleton->get_track_editor()->update_keying();
|
||||
EditorNode::get_singleton()->update_keying();
|
||||
return;
|
||||
}
|
||||
|
||||
int active_idx = -1;
|
||||
for (List<StringName>::Element *E = animlist.front(); E; E = E->next()) {
|
||||
|
||||
@@ -858,12 +864,6 @@ void AnimationPlayerEditor::_update_player() {
|
||||
active_idx = animation->get_item_count() - 1;
|
||||
}
|
||||
|
||||
if (!player) {
|
||||
AnimationPlayerEditor::singleton->get_track_editor()->update_keying();
|
||||
EditorNode::get_singleton()->update_keying();
|
||||
return;
|
||||
}
|
||||
|
||||
updating = false;
|
||||
if (active_idx != -1) {
|
||||
animation->select(active_idx);
|
||||
|
||||
Reference in New Issue
Block a user