DRW: Fix warnings in Release Build.
authorClément Foucault <foucault.clem@gmail.com>
Wed, 28 Feb 2018 02:17:13 +0000 (03:17 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Thu, 1 Mar 2018 02:53:25 +0000 (03:53 +0100)
source/blender/draw/intern/draw_manager.c

index bf8428d2919652201e9fa4efc195ede223632c7c..f25ef47685b8e5f096b0d9eac4f44799b91a0c70 100644 (file)
@@ -173,6 +173,7 @@ bool DRW_object_is_flat_normal(const Object *ob)
 int DRW_object_is_mode_shade(const Object *ob)
 {
        BLI_assert(ob == DST.draw_ctx.obact);
+       UNUSED_VARS_NDEBUG(ob);
        if ((DST.draw_ctx.object_mode & OB_MODE_EDIT) == 0) {
                if (DST.draw_ctx.object_mode & (OB_MODE_VERTEX_PAINT | OB_MODE_WEIGHT_PAINT | OB_MODE_TEXTURE_PAINT)) {
                        if ((DST.draw_ctx.v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE) == 0) {