only ignore empty dirs in Debug for performance

This commit is contained in:
Chris Danford
2005-10-15 01:05:27 +00:00
parent 73ba34b7a8
commit 372c5ad6df
+4
View File
@@ -365,12 +365,16 @@ try_element_again:
if( !IsADirectory(asPaths[p]) )
continue;
#ifdef DEBUG
// Ignore empty directories so that we don't have to wait to test changes until
// CVS is updated and prunes the empties.
vector<CString> vs;
GetDirListing( asPaths[p]+"/*", vs, false, false );
StripCvs( vs );
bool bDirIsEmpty = vs.empty();
if( bDirIsEmpty )
continue;
#endif
}
if( ext == asset_masks[i] || !strcmp(asset_masks[i], "*") )