소스 검색

fixed rename when cdb not init

Nicolas Cannasse 5 년 전
부모
커밋
cf00b6bab3
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      hide/view/FileTree.hx

+ 8 - 0
hide/view/FileTree.hx

@@ -254,7 +254,13 @@ class FileTree extends FileView {
 		});
 
 		changed = false;
+		var tmpSheets = [];
 		for( sheet in ide.database.sheets ) {
+			if( sheet.props.dataFiles != null && sheet.lines == null ) {
+				// we already updated prefabs, no need to load data files
+				tmpSheets.push(sheet);
+				@:privateAccess sheet.sheet.lines = [];
+			}
 			for( c in sheet.columns ) {
 				switch( c.type ) {
 				case TFile:
@@ -270,6 +276,8 @@ class FileTree extends FileView {
 			ide.saveDatabase();
 			hide.comp.cdb.Editor.refreshAll(true);
 		}
+		for( sheet in tmpSheets )
+			@:privateAccess sheet.sheet.lines = null;
 		return true;
 	}