Fix: Segfault in Image Editor when transforming GPencil Strokes

This commit is contained in:
Joshua Leung 2015-01-07 13:19:49 +13:00
parent 45c7af6c9c
commit 3bd01c6056
1 changed files with 4 additions and 1 deletions

View File

@ -585,7 +585,10 @@ void removeAspectRatio(TransInfo *t, float vec[2])
static void viewRedrawForce(const bContext *C, TransInfo *t)
{
if (t->spacetype == SPACE_VIEW3D) {
if (t->options & CTX_GPENCIL_STROKES) {
WM_event_add_notifier(C, NC_GPENCIL | NA_EDITED, NULL);
}
else if (t->spacetype == SPACE_VIEW3D) {
if (t->options & CTX_PAINT_CURVE) {
wmWindow *window = CTX_wm_window(C);
WM_paint_cursor_tag_redraw(window, t->ar);