Silence GP warning
authorDalai Felinto <dfelinto@gmail.com>
Mon, 10 Sep 2018 14:40:27 +0000 (11:40 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 10 Sep 2018 14:40:27 +0000 (11:40 -0300)
source/blender/editors/object/object_add.c

index 7f28e6ce35d9584629a501bba7c87392184efa23..ae5a6912673aa9300b80795dae88ccdafa2de9c4 100644 (file)
@@ -958,7 +958,7 @@ static int object_gpencil_add_exec(bContext *C, wmOperator *op)
         * or if "empty" was chosen (i.e. user wants a blank GP canvas)
         */
        if ((gpd == NULL) || (GPENCIL_ANY_MODE(gpd) == false) || (type == GP_EMPTY)) {
-               char *ob_name = NULL;
+               const char *ob_name = NULL;
                switch (type) {
                        case GP_MONKEY:
                        {