Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2014-01-22 17:32:21 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-01-22 17:37:40 +0400
commit9c883a1ecabe387533909b1e3116c2c30418f6e9 (patch)
treee3fb294597eb3575452e0624aad5536aec1d07ea /source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h
parent418aafd503617c45c9199c1fb4616910557b6e92 (diff)
Fix T38011 and cleanup of Lens Distortion node code.
The area-of-interest calculation for that node didn't work reliably. It tries to estimate the distorted rectangular area based on min/max distortion and dispersion values, but this fails in some cases and leaves uninitialized buffer chunks. So now simply use the full input rect as the area, even though it may not be as efficient - at least it works ... Also cleaned up the code somewhat to make it understandable, using separate functions for common stuff instead of cryptic walls of math.
Diffstat (limited to 'source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h b/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h
index 3c910815efc..fc9c760ed77 100644
--- a/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h
+++ b/source/blender/compositor/operations/COM_ProjectorLensDistortionOperation.h
@@ -32,8 +32,6 @@ private:
*/
SocketReader *m_inputProgram;
- NodeLensDist *m_data;
-
float m_dispersion;
bool m_dispersionAvailable;
@@ -57,8 +55,6 @@ public:
*/
void deinitExecution();
- void setData(NodeLensDist *data) { this->m_data = data; }
-
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
void updateDispersion();