Commit: 7fe3917f8302d9a7f8db5e30c295da733fd9d828 Author: Manuel Castilla Date: Tue Jul 27 23:12:43 2021 +0200 Branches: compositor-full-frame https://developer.blender.org/rB7fe3917f8302d9a7f8db5e30c295da733fd9d828
Cleanup: Unused variables =================================================================== M source/blender/compositor/intern/COM_MemoryBuffer.cc M source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc =================================================================== diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.cc b/source/blender/compositor/intern/COM_MemoryBuffer.cc index fd5cfadceef..85dac123a63 100644 --- a/source/blender/compositor/intern/COM_MemoryBuffer.cc +++ b/source/blender/compositor/intern/COM_MemoryBuffer.cc @@ -419,7 +419,6 @@ void MemoryBuffer::read_elem_filtered( read_elem_checked(x, y, out); } else { - const float uv[2] = {get_relative_x(x), get_relative_y(y)}; const float deriv[2][2] = {{dx[0], dx[1]}, {dy[0], dy[1]}}; float inv_width = 1.0f / (float)this->getWidth(), inv_height = 1.0f / (float)this->getHeight(); @@ -427,7 +426,7 @@ void MemoryBuffer::read_elem_filtered( * but compositor uses pixel space. For now let's just divide the values and * switch compositor to normalized space for EWA later. */ - float uv_normal[2] = {x * inv_width, y * inv_height}; + float uv_normal[2] = {get_relative_x(x) * inv_width, get_relative_y(y) * inv_height}; float du_normal[2] = {deriv[0][0] * inv_width, deriv[0][1] * inv_height}; float dv_normal[2] = {deriv[1][0] * inv_width, deriv[1][1] * inv_height}; diff --git a/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc b/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc index 554b9191f5c..5ae868c5964 100644 --- a/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc +++ b/source/blender/compositor/operations/COM_HueSaturationValueCorrectOperation.cc @@ -78,7 +78,6 @@ void HueSaturationValueCorrectOperation::update_memory_buffer_partial(MemoryBuff Span<MemoryBuffer *> inputs) { float hsv[4]; - float f; for (BuffersIterator<float> it = output->iterate_with(inputs, area); !it.is_end(); ++it) { copy_v4_v4(hsv, it.in(0)); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs