[Bf-blender-cvs] [159caf7] GPencil_EditStrokes: Fix: Resolved crash when toggling selection of strokes
Joshua Leung
noreply at git.blender.org
Sun Sep 28 17:27:05 CEST 2014
Commit: 159caf73da64b835984a34a04dac68135f2cef9a
Author: Joshua Leung
Date: Mon Sep 29 03:44:42 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB159caf73da64b835984a34a04dac68135f2cef9a
Fix: Resolved crash when toggling selection of strokes
===================================================================
M source/blender/editors/gpencil/gpencil_select.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index 8ccc572..4f031af 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -106,9 +106,7 @@ static int gpencil_select_all_exec(bContext *C, wmOperator *op)
{
if (gps->flag & GP_STROKE_SELECT) {
action = SEL_DESELECT;
-
- gpl = NULL; /* XXX: hack to stop iterating further, since we've found our target... */
- break;
+ break; // XXX: this only gets out of the inner loop...
}
}
GP_STROKES_ITER_END;
More information about the Bf-blender-cvs
mailing list