Fix T52853: harmless Cycles test failure in debug mode.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 20 Sep 2017 17:24:18 +0000 (19:24 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 20 Sep 2017 17:38:08 +0000 (19:38 +0200)
intern/cycles/blender/blender_mesh.cpp

index ba95fd84e8605b7e4562e5c54d64965f7fa91f5c..b1060beb4845edcdb39e6beb034f096563bb5dfc 100644 (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;