Fix compositor using edge repeat policy when it shouldn't
Was easy to notice when alpha-overing smaller image with blur on the bigger frame.
This commit is contained in:
@@ -259,6 +259,12 @@ public:
|
|||||||
float u = x;
|
float u = x;
|
||||||
float v = y;
|
float v = y;
|
||||||
this->wrap_pixel(u, v, extend_x, extend_y);
|
this->wrap_pixel(u, v, extend_x, extend_y);
|
||||||
|
if ((extend_x != COM_MB_REPEAT && (u < 0.0f || u >= this->m_width)) ||
|
||||||
|
(extend_y != COM_MB_REPEAT && (v < 0.0f || v >= this->m_height)))
|
||||||
|
{
|
||||||
|
zero_v4(result);
|
||||||
|
return;
|
||||||
|
}
|
||||||
BLI_bilinear_interpolation_wrap_fl(
|
BLI_bilinear_interpolation_wrap_fl(
|
||||||
this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v,
|
this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v,
|
||||||
extend_x == COM_MB_REPEAT, extend_y == COM_MB_REPEAT);
|
extend_x == COM_MB_REPEAT, extend_y == COM_MB_REPEAT);
|
||||||
|
Reference in New Issue
Block a user