mirror of https://github.com/axmolengine/axmol.git
Merge branch 'v3' of https://github.com/super626/cocos2d-x into v3
This commit is contained in:
commit
0eee4e2ab6
|
@ -177,7 +177,7 @@ bool PUMaterialCache::loadMaterialsFromSearchPaths( const std::string &fileFolde
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string fullpath = fileFolder + "/" + file->d_name;
|
std::string fullpath = fileFolder + "/" + file->d_name;
|
||||||
if (strlen(file->d_name) > 9 && strcmp(".material", file->d_name + strlen(file->d_name) - 9))
|
if (strlen(file->d_name) > 9 && (strcmp(".material", file->d_name + strlen(file->d_name) - 9) == 0))
|
||||||
{
|
{
|
||||||
CCLOG("%s", fullpath.c_str());
|
CCLOG("%s", fullpath.c_str());
|
||||||
loadMaterials(fullpath);
|
loadMaterials(fullpath);
|
||||||
|
|
Loading…
Reference in New Issue