aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/runtimerender/rendererimpl/qssgrenderdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtimerender/rendererimpl/qssgrenderdata.cpp b/src/runtimerender/rendererimpl/qssgrenderdata.cpp
index 6d994f24..310de5a1 100644
--- a/src/runtimerender/rendererimpl/qssgrenderdata.cpp
+++ b/src/runtimerender/rendererimpl/qssgrenderdata.cpp
@@ -159,7 +159,7 @@ QSSGRenderDataHelpers::GlobalStateResult QSSGRenderDataHelpers::updateGlobalNode
const bool hasParent = (parent != nullptr);
const bool globallyActive = node->getLocalState(LocalState::Active) && (!hasParent || parent->getGlobalState(GlobalState::Active));
node->flags = globallyActive ? (node->flags | FlagT(GlobalState::Active)) : (node->flags & ~FlagT(GlobalState::Active));
- const bool globallyPickable = node->getLocalState(LocalState::Pickable) || (!hasParent || parent->getGlobalState(GlobalState::Pickable));
+ const bool globallyPickable = node->getLocalState(LocalState::Pickable) || (hasParent && parent->getGlobalState(GlobalState::Pickable));
node->flags = globallyPickable ? (node->flags | FlagT(GlobalState::Pickable)) : (node->flags & ~FlagT(GlobalState::Pickable));
// Clear dirty flags (Transform, Opacity, Active, Pickable)