From 969bfeae4cb09da885897ad0871f78d24aaac51e Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 21 Mar 2024 16:34:15 +0100 Subject: [PATCH] Fix SpriteFrames editor visibility problems --- editor/plugins/sprite_frames_editor_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index 3055e178ba7c..fc361ab26486 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -2334,7 +2334,9 @@ void SpriteFramesEditorPlugin::make_visible(bool p_visible) { EditorNode::get_bottom_panel()->make_item_visible(frames_editor); } else { button->hide(); - frames_editor->edit(Ref()); + if (frames_editor->is_visible_in_tree()) { + EditorNode::get_bottom_panel()->hide_bottom_panel(); + } } }