diff options
Diffstat (limited to 'source/blender/compositor/intern/COM_CompositorContext.h')
-rw-r--r-- | source/blender/compositor/intern/COM_CompositorContext.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/source/blender/compositor/intern/COM_CompositorContext.h b/source/blender/compositor/intern/COM_CompositorContext.h index 2f5e8c0648d..3c7db703bf9 100644 --- a/source/blender/compositor/intern/COM_CompositorContext.h +++ b/source/blender/compositor/intern/COM_CompositorContext.h @@ -64,17 +64,18 @@ private: * @see ExecutionSystem */ bNodeTree *m_bnodetree; - + /** - * @brief activegNode the group node that is currently being edited. + * @brief Preview image hash table + * This field is initialized in ExecutionSystem and must only be read from that point on. */ - bNode *m_activegNode; + bNodeInstanceHash *m_previews; /** * @brief does this system have active opencl devices? */ bool m_hasActiveOpenCLDevices; - + /** * @brief Skip slow nodes */ @@ -115,19 +116,19 @@ public: const bNodeTree *getbNodeTree() const { return this->m_bnodetree; } /** - * @brief set the active groupnode of the context + * @brief get the scene of the context */ - void setActivegNode(bNode *gnode) { this->m_activegNode = gnode; } + const RenderData *getRenderData() const { return this->m_rd; } /** - * @brief get the active groupnode of the context + * @brief set the preview image hash table */ - const bNode *getActivegNode() const { return this->m_activegNode; } + void setPreviewHash(bNodeInstanceHash *previews) { this->m_previews = previews; } /** - * @brief get the scene of the context + * @brief get the preview image hash table */ - const RenderData *getRenderData() const { return this->m_rd; } + bNodeInstanceHash *getPreviewHash() const { return this->m_previews; } /** * @brief set view settings of color color management @@ -178,6 +179,7 @@ public: void setFastCalculation(bool fastCalculation) {this->m_fastCalculation = fastCalculation;} bool isFastCalculation() {return this->m_fastCalculation;} + inline bool isGroupnodeBufferEnabled() {return this->getbNodeTree()->flag & NTREE_COM_GROUPNODE_BUFFER;} }; |