diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-21 19:26:41 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-21 19:26:41 +0400 |
commit | f3db38de56a123cf27fa8f7accb46b22027e6a82 (patch) | |
tree | 5ce9b10fce5ae05134999e8d09445bb8b593765f /source/blender/compositor/operations/COM_RenderLayersBaseProg.h | |
parent | 0b40266afcacdcb5000194788584602c42d0bf74 (diff) |
Render border + crop will be handled correct in compositor now
This commit simply implements mapping from centered cropped canvas
to a full-frame coordinates, so operations like alpha-overing render
result on top of image will be properly aligned.
Diffstat (limited to 'source/blender/compositor/operations/COM_RenderLayersBaseProg.h')
-rw-r--r-- | source/blender/compositor/operations/COM_RenderLayersBaseProg.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_RenderLayersBaseProg.h b/source/blender/compositor/operations/COM_RenderLayersBaseProg.h index 3916862a0b3..84d6c1ee188 100644 --- a/source/blender/compositor/operations/COM_RenderLayersBaseProg.h +++ b/source/blender/compositor/operations/COM_RenderLayersBaseProg.h @@ -63,7 +63,12 @@ private: int m_renderpass; int m_elementsize; - + + /** + * @brief render data used for active rendering + */ + const RenderData *m_rd; + protected: /** * Constructor @@ -89,6 +94,7 @@ public: */ void setScene(Scene *scene) { this->m_scene = scene; } Scene *getScene() { return this->m_scene; } + void setRenderData(const RenderData *rd) { this->m_rd = rd; } void setLayerId(short layerId) { this->m_layerId = layerId; } short getLayerId() { return this->m_layerId; } void initExecution(); |