mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11973 from dabingnn/v3_fixCameraVisitError
Fix visiting scene error with multiple camera
This commit is contained in:
commit
311f453ea0
|
@ -1315,8 +1315,11 @@ uint32_t Node::processParentFlags(const Mat4& parentTransform, uint32_t parentFl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isVisitableByVisitingCamera())
|
//remove this two line given that isVisitableByVisitingCamera should not affect the calculation of transform given that we are visiting scene
|
||||||
return parentFlags;
|
//without involving view and projection matrix.
|
||||||
|
|
||||||
|
// if (!isVisitableByVisitingCamera())
|
||||||
|
// return parentFlags;
|
||||||
|
|
||||||
uint32_t flags = parentFlags;
|
uint32_t flags = parentFlags;
|
||||||
flags |= (_transformUpdated ? FLAGS_TRANSFORM_DIRTY : 0);
|
flags |= (_transformUpdated ? FLAGS_TRANSFORM_DIRTY : 0);
|
||||||
|
|
Loading…
Reference in New Issue