GP Copy/Paste Fix: Paste button doesn't update after copying strokes using Ctrl-C

This commit is contained in:
Joshua Leung 2017-06-07 19:07:57 +12:00
parent 89d4164f54
commit 7667040dd0
1 changed files with 4 additions and 1 deletions

View File

@ -416,7 +416,10 @@ static int gp_strokes_copy_exec(bContext *C, wmOperator *op)
}
CTX_DATA_END;
/* done - no updates needed */
/* updates (to ensure operator buttons are refreshed, when used via hotkeys) */
WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL); // XXX?
/* done */
return OPERATOR_FINISHED;
}