Преглед на файлове

Fix SpriteFrames editor visibility problems

kobewi преди 1 година
родител
ревизия
969bfeae4c
променени са 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();
+		}
 	}
 }