mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13409 from liamcindy/V3.8_reader
fix userCamera flag error with old version files
This commit is contained in:
commit
66d99d392c
|
@ -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")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue