diff options
Diffstat (limited to 'src/render/backend/entity_p.h')
-rw-r--r-- | src/render/backend/entity_p.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/backend/entity_p.h b/src/render/backend/entity_p.h index 6f8a781e6..9516ee82b 100644 --- a/src/render/backend/entity_p.h +++ b/src/render/backend/entity_p.h @@ -120,6 +120,11 @@ public: void setTreeEnabled(bool enabled) { m_treeEnabled = enabled; } bool isTreeEnabled() const { return m_treeEnabled; } + Qt3DCore::QNodeIdVector layerIds() const { return m_layerComponents + m_recursiveLayerComponents; } + void addRecursiveLayerId(const Qt3DCore::QNodeId layerId); + void removeRecursiveLayerId(const Qt3DCore::QNodeId layerId); + void clearRecursiveLayerIds() { m_recursiveLayerComponents.clear(); } + template<class Backend, uint INDEXBITS> Qt3DCore::QHandle<Backend, INDEXBITS> componentHandle() const { @@ -197,6 +202,9 @@ private: Qt3DCore::QNodeId m_computeComponent; Qt3DCore::QNodeId m_armatureComponent; + // Includes recursive layers + Qt3DCore::QNodeIdVector m_recursiveLayerComponents; + QString m_objectName; bool m_boundingDirty; // true only if this and all parent nodes are enabled |