Fix error when Blender starts - variable not initializated
authorAntonioya <blendergit@gmail.com>
Mon, 17 Dec 2018 18:09:27 +0000 (19:09 +0100)
committerAntonioya <blendergit@gmail.com>
Mon, 17 Dec 2018 18:09:27 +0000 (19:09 +0100)
source/blender/draw/intern/draw_cache_impl_mesh.c

index ab9c13e059dd4c6c6e0e284f64f5f1566ec6e8cc..c0d71fe4c36ca2e3c14b43a1ea2887db3ad5cba9 100644 (file)
@@ -5612,7 +5612,7 @@ void DRW_mesh_batch_cache_create_requested(Object *ob, Mesh *me)
        const DRWContextState *draw_ctx = DRW_context_state_get();
        const int mode = CTX_data_mode_enum_ex(draw_ctx->object_edit, draw_ctx->obact, draw_ctx->object_mode);
        const bool use_hide = false; /* TODO */
-       bool use_face_sel;
+       bool use_face_sel = false;
 
        /* Tex paint face select */
        if ((mode == CTX_MODE_PAINT_TEXTURE) && (ob->type == OB_MESH) && (draw_ctx->obact == ob)) {