diff options
Diffstat (limited to 'src/Runtime/Source/runtime/Qt3DSElementSystem.h')
-rw-r--r-- | src/Runtime/Source/runtime/Qt3DSElementSystem.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Runtime/Source/runtime/Qt3DSElementSystem.h b/src/Runtime/Source/runtime/Qt3DSElementSystem.h index b9355c55..12ebebd9 100644 --- a/src/Runtime/Source/runtime/Qt3DSElementSystem.h +++ b/src/Runtime/Source/runtime/Qt3DSElementSystem.h @@ -508,6 +508,16 @@ namespace runtime { return ta && ua && inParentActive; } + void findComponents(QVector<SElement *> &components) + { + if (IsComponent()) + components.push_back(this); + SElement *child = m_Child; + while (child) { + child->findComponents(components); + child = child->m_Sibling; + } + } }; struct SGetElementNodeDirtyIndex |