ソースを参照

tools: scroll to the revealed resource

Daniele Bartolini 1 年間 前
コミット
0d422c8664
2 ファイル変更2 行追加0 行削除
  1. 1 0
      docs/changelog.rst
  2. 1 0
      tools/level_editor/project_browser.vala

+ 1 - 0
docs/changelog.rst

@@ -29,6 +29,7 @@ Changelog
 * Added the ability to drag & drop units from the ProjectBrowser to the EditorView.
 * Added thumbnails for .unit, .material, .texture and .sound resources in the Project Browser.
 * Fixed importing resources in the source directory's root asking for destination directory.
+* Improved revealing a resource in the Project Browser.
 
 **Lua API**
 

+ 1 - 0
tools/level_editor/project_browser.vala

@@ -720,6 +720,7 @@ public class ProjectBrowser : Gtk.Bin
 
 			_tree_view.expand_to_path(sort_path);
 			_tree_view.get_selection().select_path(sort_path);
+			_tree_view.scroll_to_cell(sort_path, null, false, 0.0f, 0.0f);
 		} while (filter_path == null && parent_name != "");
 	}