Browse Source

exclude directories containing a dot from hxd.Res paths

ncannasse 6 năm trước cách đây
mục cha
commit
d2db4e471c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hxd/res/FileTree.hx

+ 2 - 0
hxd/res/FileTree.hx

@@ -298,6 +298,8 @@ class FileTree {
 		}
 
 		for( d in tree.dirs ) {
+			if( d.name.indexOf(".") >= 0 )
+				continue; // ignore directories containing a dot (only for ident generation)
 			if( fident.exists(d.ident) ) {
 				Context.warning("Directory " + d.relPath + " ignored because of " + fident.get(d.ident), pos);
 				continue;