diff options
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_CompositorOperation.cpp | 3 | ||||
-rw-r--r-- | source/blender/compositor/operations/COM_MovieDistortionOperation.h | 10 |
2 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_CompositorOperation.cpp b/source/blender/compositor/operations/COM_CompositorOperation.cpp index 09e172f395e..d75cb39325f 100644 --- a/source/blender/compositor/operations/COM_CompositorOperation.cpp +++ b/source/blender/compositor/operations/COM_CompositorOperation.cpp @@ -68,7 +68,8 @@ void CompositorOperation::deinitExecution() MEM_freeN(rr->rectf); } rr->rectf = outputBuffer; - } else { + } + else { if (this->outputBuffer) { MEM_freeN(this->outputBuffer); } diff --git a/source/blender/compositor/operations/COM_MovieDistortionOperation.h b/source/blender/compositor/operations/COM_MovieDistortionOperation.h index f583493340b..5792248464a 100644 --- a/source/blender/compositor/operations/COM_MovieDistortionOperation.h +++ b/source/blender/compositor/operations/COM_MovieDistortionOperation.h @@ -81,10 +81,11 @@ public: if (x<0 || x >= this->width || y <0 || y >= this->height) { *u = x; *v = y; - } else { - + } + else { int offset = y * this->width + x; - int offset2 = offset*2; + int offset2 = offset * 2; + if (!bufferCalculated[offset]) { //float overscan = 0.0f; float w = (float)this->width/* / (1 + overscan) */; @@ -99,7 +100,8 @@ public: if (inverted) { BKE_tracking_invert_intrinsics(trackingData, in, out); - } else { + } + else { BKE_tracking_apply_intrinsics(trackingData, in, out); } |