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,6 +133,8 @@ namespace cocostudio
} }
else if (attriname == "CameraFlagData") else if (attriname == "CameraFlagData")
{ {
int flag = atoi(value.c_str());
if (flag != 0)
cameraFlag = atoi(value.c_str()); cameraFlag = atoi(value.c_str());
} }
else if (attriname == "SkyBoxEnabled") else if (attriname == "SkyBoxEnabled")