Merge pull request #13409 from liamcindy/V3.8_reader

fix userCamera flag error with old version files
This commit is contained in:
pandamicro 2015-08-17 17:01:59 +08:00
commit 66d99d392c
1 changed files with 3 additions and 1 deletions

View File

@ -133,7 +133,9 @@ namespace cocostudio
}
else if (attriname == "CameraFlagData")
{
cameraFlag = atoi(value.c_str());
int flag = atoi(value.c_str());
if (flag != 0)
cameraFlag = atoi(value.c_str());
}
else if (attriname == "SkyBoxEnabled")
{