diff options
author | Monique Dewanchand <m.dewanchand@atmind.nl> | 2012-07-11 00:21:13 +0400 |
---|---|---|
committer | Monique Dewanchand <m.dewanchand@atmind.nl> | 2012-07-11 00:21:13 +0400 |
commit | 8a4584d04daae39c76d1f46200a57d8f4f3c9d40 (patch) | |
tree | c869a5bdce291a11f824efae7e3c0b418df6529d /source/blender/compositor/operations/COM_BokehBlurOperation.h | |
parent | 831ae18622971c9d3be878d0e44db77217e605ad (diff) |
Fix for tiles bug:
[#31981] Bokeh Blur Node - Size input socket does not accept input from Value Input node, Values smaller than 0.1 will produce black output
Diffstat (limited to 'source/blender/compositor/operations/COM_BokehBlurOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_BokehBlurOperation.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_BokehBlurOperation.h b/source/blender/compositor/operations/COM_BokehBlurOperation.h index 0433a4156a8..407118b17a5 100644 --- a/source/blender/compositor/operations/COM_BokehBlurOperation.h +++ b/source/blender/compositor/operations/COM_BokehBlurOperation.h @@ -30,7 +30,9 @@ private: SocketReader *m_inputProgram; SocketReader *m_inputBokehProgram; SocketReader *m_inputBoundingBoxReader; + void updateSize(MemoryBuffer **memoryBuffers); float m_size; + bool m_sizeavailable; float m_bokehMidX; float m_bokehMidY; float m_bokehDimension; @@ -55,7 +57,7 @@ public: bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); - void setSize(float size) { this->m_size = size; } + void setSize(float size) { this->m_size = size; this->m_sizeavailable = true; } void executeOpenCL(OpenCLDevice* device, MemoryBuffer *outputMemoryBuffer, cl_mem clOutputBuffer, MemoryBuffer **inputMemoryBuffers, list<cl_mem> *clMemToCleanUp, list<cl_kernel> *clKernelsToCleanUp); }; |