Cycles: Add assert to catch possibly wrong logic

This commit is contained in:
Sergey Sharybin 2017-08-25 21:02:27 +02:00
parent f9a3d01452
commit ee61a97632
1 changed files with 2 additions and 0 deletions

View File

@ -64,6 +64,8 @@ inline void face_split_tri_indices(const int face_flag,
tri_b[2] = 1;
}
else /*if(face_flag & FACE_FLAG_DIVIDE_13)*/ {
assert(face_flag & FACE_FLAG_DIVIDE_13);
tri_a[0] = 0;
tri_a[1] = 1;
tri_a[2] = 2;