Browse Source

exclude directories containing a dot from hxd.Res paths

ncannasse 6 years ago
parent
commit
d2db4e471c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hxd/res/FileTree.hx

+ 2 - 0
hxd/res/FileTree.hx

@@ -298,6 +298,8 @@ class FileTree {
 		}
 		}
 
 
 		for( d in tree.dirs ) {
 		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) ) {
 			if( fident.exists(d.ident) ) {
 				Context.warning("Directory " + d.relPath + " ignored because of " + fident.get(d.ident), pos);
 				Context.warning("Directory " + d.relPath + " ignored because of " + fident.get(d.ident), pos);
 				continue;
 				continue;