From 0113e6961d263fe1e0a76118b86e3cb451d8d1c5 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Wed, 13 Sep 2023 14:58:16 +0800 Subject: [PATCH] Hide animation tool correctly when switching scenes --- editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 703cd7ef81..b611f41c41 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -3983,7 +3983,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();