Browse Source

fixed a bug concerning the exclusion of texture files.

Eugene 9 years ago
parent
commit
aeb7e1fedb
1 changed files with 2 additions and 3 deletions
  1. 2 3
      Source/ToolCore/Build/BuildBase.cpp

+ 2 - 3
Source/ToolCore/Build/BuildBase.cpp

@@ -434,7 +434,6 @@ void BuildBase::BuildFilteredProjectResourceEntries()
             }
         }
     }
-
     // add the files defined using a folder in assetbuildconfig.json
     for (unsigned i = 0; i < filesInFolderToAdd.Size(); ++i)
     {
@@ -489,7 +488,7 @@ void BuildBase::BuildFilteredProjectResourceEntries()
     }
     
     // Obtain files in cache folder,
-    // Check if the file contains the guid, and add it to the resourceFilesToInclude
+    // Check if the file contains the guid, and add it to the cacheFilesToInclude
     Vector<String> filesInCacheFolder;
     Vector<String> cacheFilesToInclude;
     AssetDatabase* db = GetSubsystem<AssetDatabase>();
@@ -545,7 +544,7 @@ void BuildBase::AddToResourcePackager(const String& filename, const String& reso
 
     // Add the file to the resourceEntries_ list
     // TODO: Add additional filters
-    if (CheckIncludeResourceFile(resourceDir, filename))
+    if (!CheckIncludeResourceFile(resourceDir, filename))
         return;
 
     //if (GetExtension(filename) == ".psd")