only ignore empty dirs in Debug for performance
This commit is contained in:
@@ -365,12 +365,16 @@ try_element_again:
|
|||||||
if( !IsADirectory(asPaths[p]) )
|
if( !IsADirectory(asPaths[p]) )
|
||||||
continue;
|
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;
|
vector<CString> vs;
|
||||||
GetDirListing( asPaths[p]+"/*", vs, false, false );
|
GetDirListing( asPaths[p]+"/*", vs, false, false );
|
||||||
StripCvs( vs );
|
StripCvs( vs );
|
||||||
bool bDirIsEmpty = vs.empty();
|
bool bDirIsEmpty = vs.empty();
|
||||||
if( bDirIsEmpty )
|
if( bDirIsEmpty )
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ext == asset_masks[i] || !strcmp(asset_masks[i], "*") )
|
if( ext == asset_masks[i] || !strcmp(asset_masks[i], "*") )
|
||||||
|
|||||||
Reference in New Issue
Block a user