1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix SpriteFrames editor visibility problems

This commit is contained in:
kobewi
2024-03-21 16:34:15 +01:00
parent fe01776f05
commit 969bfeae4c

View File

@@ -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<SpriteFrames>());
if (frames_editor->is_visible_in_tree()) {
EditorNode::get_bottom_panel()->hide_bottom_panel();
}
}
}