浏览代码

Merge pull request #89754 from KoBeWi/bottom_feeder

Fix SpriteFrames editor visibility problems
Rémi Verschelde 1 年之前
父节点
当前提交
a95893caef
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      editor/plugins/sprite_frames_editor_plugin.cpp

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