Silence GP warning

This commit is contained in:
Dalai Felinto 2018-09-10 11:40:27 -03:00
parent d483dfd03d
commit c0b61cf64b
1 changed files with 1 additions and 1 deletions

View 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:
{