Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-05-28 21:20:09 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-05-28 21:20:09 +0300
commit2783945b1b088260eeab1ff5e5a7ac8d3043f826 (patch)
tree2a96b4213dcb8a06967d7bd5f0dcb6ac1929dc2f /source/blender/draw/intern/draw_manager_data.c
parentb76ccc7f802b7bbaa1d5b78e3e4a33784c38072c (diff)
Eevee: Fix assert when displaying transparent film checker
Diffstat (limited to 'source/blender/draw/intern/draw_manager_data.c')
-rw-r--r--source/blender/draw/intern/draw_manager_data.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c
index 5674ebd3a60..24f2670dd2d 100644
--- a/source/blender/draw/intern/draw_manager_data.c
+++ b/source/blender/draw/intern/draw_manager_data.c
@@ -1292,8 +1292,11 @@ static void draw_view_matrix_state_update(DRWViewUboStorage *storage,
const float winmat[4][4])
{
/* If only one the matrices is negative, then the
- * polygon winding changes and we don't want that. */
- BLI_assert(is_negative_m4(viewmat) != is_negative_m4(winmat));
+ * polygon winding changes and we don't want that.
+ * By convention, the winmat is negative because
+ * looking through the -Z axis. So this inverse the
+ * changes the test for the winmat. */
+ BLI_assert(is_negative_m4(viewmat) == !is_negative_m4(winmat));
copy_m4_m4(storage->viewmat, viewmat);
invert_m4_m4(storage->viewinv, storage->viewmat);