Merge pull request #81606 from jsjtxietian/hide-animation-tool--correctly-when-switching-scenes

Hide animation toolbar above the viewport correctly when switching scenes
This commit is contained in:
Yuri Sizov 2023-09-15 19:48:23 +02:00
commit 2febb246e1

View file

@ -3991,7 +3991,7 @@ void CanvasItemEditor::_notification(int p_what) {
select_sb->set_texture_margin_all(4);
select_sb->set_content_margin_all(4);
AnimationPlayerEditor::get_singleton()->get_track_editor()->connect("visibility_changed", callable_mp(this, &CanvasItemEditor::_keying_changed));
AnimationPlayerEditor::get_singleton()->get_track_editor()->connect("keying_changed", callable_mp(this, &CanvasItemEditor::_keying_changed));
AnimationPlayerEditor::get_singleton()->connect("animation_selected", callable_mp(this, &CanvasItemEditor::_keying_changed).unbind(1));
_keying_changed();
_update_editor_settings();