Change-Id: I46418d927ee21bc72b94aeae7e8ae4068b46d6be
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
if(node->GetUpdateAreaHint() == Vector4::ZERO)
{
+ if(isLayer3d)
+ {
+ return true;
+ }
// RenderItem::CalculateViewportSpaceAABB cannot cope with z transform
// I don't use item.mModelMatrix.GetTransformComponents() for z transform, would be too slow
- if(!isLayer3d && nodeWorldMatrix.GetZAxis() == Vector3(0.0f, 0.0f, 1.0f))
+ Vector3 zaxis = nodeWorldMatrix.GetZAxis();
+ if(EqualsZero(zaxis.x) && EqualsZero(zaxis.y))
{
nodeUpdateArea = Vector4(0.0f, 0.0f, nodeSize.width, nodeSize.height);
return false;