[Bf-blender-cvs] [fedb34c] blender-v2.73-release: Fix: Segfault in Image Editor when transforming GPencil Strokes
Joshua Leung
noreply at git.blender.org
Wed Jan 7 11:59:49 CET 2015
Commit: fedb34c592b1ad5fd6c3d498c495d7fcfb702788
Author: Joshua Leung
Date: Wed Jan 7 13:19:49 2015 +1300
Branches: blender-v2.73-release
https://developer.blender.org/rBfedb34c592b1ad5fd6c3d498c495d7fcfb702788
Fix: Segfault in Image Editor when transforming GPencil Strokes
===================================================================
M source/blender/editors/transform/transform.c
===================================================================
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index b87a823..3aec3d5 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -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);
More information about the Bf-blender-cvs
mailing list