Merge pull request #11973 from dabingnn/v3_fixCameraVisitError

Fix visiting scene error with multiple camera
This commit is contained in:
minggo 2015-05-22 17:16:30 +08:00
commit 311f453ea0
1 changed files with 5 additions and 2 deletions

View File

@ -1315,8 +1315,11 @@ uint32_t Node::processParentFlags(const Mat4& parentTransform, uint32_t parentFl
}
}
if (!isVisitableByVisitingCamera())
return parentFlags;
//remove this two line given that isVisitableByVisitingCamera should not affect the calculation of transform given that we are visiting scene
//without involving view and projection matrix.
// if (!isVisitableByVisitingCamera())
// return parentFlags;
uint32_t flags = parentFlags;
flags |= (_transformUpdated ? FLAGS_TRANSFORM_DIRTY : 0);