Fix T52853: harmless Cycles test failure in debug mode.

This commit is contained in:
Brecht Van Lommel 2017-09-20 19:24:18 +02:00
parent 90d4b823d7
commit 14223357e5
Notes: blender-bot 2023-02-14 09:36:46 +01:00
Referenced by issue #52853, [ctest/Cycles_render_test] autosmooth_custom_normals test failing.
1 changed files with 2 additions and 3 deletions

View File

@ -63,9 +63,8 @@ inline void face_split_tri_indices(const int face_flag,
tri_b[1] = 3;
tri_b[2] = 1;
}
else /*if(face_flag & FACE_FLAG_DIVIDE_13)*/ {
assert(face_flag & FACE_FLAG_DIVIDE_13);
else {
/* Quad with FACE_FLAG_DIVIDE_13 or single triangle. */
tri_a[0] = 0;
tri_a[1] = 1;
tri_a[2] = 2;