Correct invalid assert use
authorCampbell Barton <ideasman42@gmail.com>
Mon, 24 Jul 2017 07:32:09 +0000 (17:32 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 24 Jul 2017 07:32:28 +0000 (17:32 +1000)
source/blender/editors/gpencil/gpencil_brush.c
source/blender/editors/render/render_shading.c

index 5332bec0c645388ac626cab1b302a9fa2d9ebebe..e5fb162a96cef8750c1185fe9b8bef4303bc4e60 100644 (file)
@@ -710,7 +710,7 @@ static bool gp_brush_randomize_apply(tGP_BrushEditData *gso, bGPDstroke *gps, in
                        }
                        else {
                                /* ERROR */
-                               BLI_assert("3D stroke being sculpted in non-3D view");
+                               BLI_assert(!"3D stroke being sculpted in non-3D view");
                        }
                }
                else {
index 0878636d0faad0c4765edefce07bb9a6ac1cdb16..9bdb34f5384564f8c92944b1bed0976e2bbbd1fb 100644 (file)
@@ -1818,7 +1818,7 @@ static void paste_mtex_copybuf(ID *id)
                        mtex = &(((FreestyleLineStyle *)id)->mtex[(int)((FreestyleLineStyle *)id)->texact]);
                        break;
                default:
-                       BLI_assert("invalid id type");
+                       BLI_assert(!"invalid id type");
                        return;
        }