From 0c6a0b293f5e9a1f37a6aea267e4a723731d4225 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 28 Oct 2012 15:23:16 +0000 Subject: style cleanup --- source/blender/compositor/operations/COM_CropOperation.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source/blender/compositor') diff --git a/source/blender/compositor/operations/COM_CropOperation.cpp b/source/blender/compositor/operations/COM_CropOperation.cpp index 25a73799eff..16c19f3ebaa 100644 --- a/source/blender/compositor/operations/COM_CropOperation.cpp +++ b/source/blender/compositor/operations/COM_CropOperation.cpp @@ -37,8 +37,7 @@ void CropBaseOperation::updateArea() float width = inputReference->getWidth(); float height = inputReference->getHeight(); - if (width > 0.0f && height > 0.0f) - { + if (width > 0.0f && height > 0.0f) { if (this->m_relative) { this->m_settings->x1 = width * this->m_settings->fac_x1; this->m_settings->x2 = width * this->m_settings->fac_x2; @@ -114,12 +113,10 @@ void CropImageOperation::determineResolution(unsigned int resolution[2], unsigne void CropImageOperation::executePixel(float output[4], float x, float y, PixelSampler sampler) { - if (x >= 0 && x < getWidth() && y >= 0 && y < getHeight()) - { + if (x >= 0 && x < getWidth() && y >= 0 && y < getHeight()) { this->m_inputOperation->read(output, (x + this->m_xmin), (y + this->m_ymin), sampler); } - else - { + else { zero_v4(output); } } -- cgit v1.2.3