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:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-09-11 17:07:03 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-09-11 17:07:20 +0400
commit4bbe0c8cded98d4daafe1707766041ca9b86db36 (patch)
treeb217121ea53cab605e65f7cc036f358fa1abb14e /source/blender/compositor/operations/COM_MovieDistortionOperation.cpp
parent89b62804dcba7167c332b5f1d71f4a88e02b1781 (diff)
Fix T41785: The combination of movie-distortion and lens-distortion leads to artifacts
Diffstat (limited to 'source/blender/compositor/operations/COM_MovieDistortionOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_MovieDistortionOperation.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp b/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp
index 28b1fc11a7c..eb8e5a8cc50 100644
--- a/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp
+++ b/source/blender/compositor/operations/COM_MovieDistortionOperation.cpp
@@ -68,13 +68,10 @@ void MovieDistortionOperation::initExecution()
{
this->m_cache = c;
this->m_cache->updateLastUsage();
+ this->m_cache->getMargin(this->m_margin);
return;
}
}
- DistortionCache *newC = new DistortionCache(this->m_movieClip, this->m_width, this->m_height,
- calibration_width, calibration_height, this->m_distortion);
- s_cache.push_back(newC);
- this->m_cache = newC;
if (this->m_distortion) {
float delta[2];
@@ -96,6 +93,14 @@ void MovieDistortionOperation::initExecution()
*/
m_margin[0] = m_margin[1] = 0;
}
+
+ DistortionCache *newC = new DistortionCache(this->m_movieClip,
+ this->m_width, this->m_height,
+ calibration_width, calibration_height,
+ this->m_distortion,
+ this->m_margin);
+ s_cache.push_back(newC);
+ this->m_cache = newC;
}
else {
this->m_cache = NULL;