Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2017-06-07 10:07:57 +0300
committerJoshua Leung <aligorith@gmail.com>2017-06-07 18:23:29 +0300
commit7667040dd023469f8feaf42467c6237177565cd2 (patch)
tree2e076d0ba22e156e45053e0014d4fad54fb063ec
parent89d4164f54d49e5ffeff6ce0ec46556a3b638a8d (diff)
GP Copy/Paste Fix: Paste button doesn't update after copying strokes using Ctrl-C
-rw-r--r--source/blender/editors/gpencil/gpencil_edit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index f2a0476a9e7..c90faba3761 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -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;
}