diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-09-11 17:07:03 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-09-11 17:07:20 +0400 |
commit | 4bbe0c8cded98d4daafe1707766041ca9b86db36 (patch) | |
tree | b217121ea53cab605e65f7cc036f358fa1abb14e /source/blender/compositor/operations/COM_MovieDistortionOperation.cpp | |
parent | 89b62804dcba7167c332b5f1d71f4a88e02b1781 (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.cpp | 13 |
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; |