summaryrefslogtreecommitdiff
path: root/src/render/jobs/renderviewjobutils.cpp
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@kdab.com>2016-05-03 14:18:26 +0200
committerSean Harmer <sean.harmer@kdab.com>2016-05-04 08:33:31 +0000
commita1fcb2a80eaac8f49b082bd587b8c7935d816ea7 (patch)
tree8417b555d30c64f578beda97e7619416fb66f749 /src/render/jobs/renderviewjobutils.cpp
parent67a6c7fc59f750c1b535b545983625d3ebc86cdf (diff)
downloadqt3d-a1fcb2a80eaac8f49b082bd587b8c7935d816ea7.tar.gz
Adjust LayerFilter's layers property behavior
Now an empty list filters out all layers instead of letting everything go through. Also, enabled == false is now honored, a disabled filter lets everything go through (whatever is the layers list). Change-Id: I5ef183c27a9dd045f423c1bf13d563c61b432cfa Task-number: QTBUG-51440 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/jobs/renderviewjobutils.cpp')
-rw-r--r--src/render/jobs/renderviewjobutils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/jobs/renderviewjobutils.cpp b/src/render/jobs/renderviewjobutils.cpp
index 249707547..c22f84072 100644
--- a/src/render/jobs/renderviewjobutils.cpp
+++ b/src/render/jobs/renderviewjobutils.cpp
@@ -114,6 +114,7 @@ void setRenderViewConfigFromFrameGraphLeafNode(RenderView *rv, const FrameGraphN
}
case FrameGraphNode::LayerFilter: // Can be set multiple times in the tree
+ rv->setHasLayerFilter(true);
rv->appendLayerFilter(static_cast<const LayerFilterNode *>(node)->layerIds());
rv->appendLayerFilter(static_cast<const LayerFilterNode *>(node)->layers()); // For debug
break;