Fix: Debug build compile error after recent cleanup commit
79ba1a1ac8
missed that this variable was used in an assert.
This commit is contained in:
parent
f72969f377
commit
0ad4d07f10
Notes:
blender-bot
2023-02-14 06:05:22 +01:00
Referenced by issue #104137, Broken HIP device detection in master Referenced by issue #104132, Regression: Vertex colors/attributes no longer displaying in Solid shading
|
@ -131,9 +131,12 @@ void ShadowPass::ShadowView::setup(View &view, float3 light_direction, bool forc
|
|||
float4 extruded_face = float4(UNPACK3(normal), math::dot(normal, corner_a));
|
||||
|
||||
/* Ensure the plane faces outwards */
|
||||
bool flipped = false;
|
||||
for (float3 corner : frustum_corners.vec) {
|
||||
if (math::dot(float3(extruded_face), corner) > (extruded_face.w + 0.1)) {
|
||||
BLI_assert(!flipped);
|
||||
UNUSED_VARS_NDEBUG(flipped);
|
||||
flipped = true;
|
||||
extruded_face *= -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue