Merge pull request #89754 from KoBeWi/bottom_feeder

Fix SpriteFrames editor visibility problems
This commit is contained in:
Rémi Verschelde 2024-04-12 11:16:37 +02:00
commit a95893caef
No known key found for this signature in database
GPG key ID: C3336907360768E1

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();
}
}
}