[Bf-blender-cvs] [3bd01c6] master: Fix: Segfault in Image Editor when transforming GPencil Strokes

Joshua Leung noreply at git.blender.org
Wed Jan 7 01:23:04 CET 2015


Commit: 3bd01c60561c5e88f1a9b984852c77b32b7caa72
Author: Joshua Leung
Date:   Wed Jan 7 13:19:49 2015 +1300
Branches: master
https://developer.blender.org/rB3bd01c60561c5e88f1a9b984852c77b32b7caa72

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