[Bf-blender-cvs] [0e25dc4] master: GPencil: Fix error in arrange strokes

Antonioya noreply at git.blender.org
Sun Aug 7 16:58:42 CEST 2016


Commit: 0e25dc4acc08e7c48588ec7dc27f3deea3a165ec
Author: Antonioya
Date:   Fri Aug 5 21:09:30 2016 +0200
Branches: master
https://developer.blender.org/rB0e25dc4acc08e7c48588ec7dc27f3deea3a165ec

GPencil: Fix error in arrange strokes

During code review a field was renamed, but one line was missing.

===================================================================

M	source/blender/editors/gpencil/gpencil_data.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 6f2ebbe..876f873 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -747,7 +747,7 @@ static int gp_stroke_arrange_exec(bContext *C, wmOperator *op)
 	bGPDframe *gpf = gpl->actframe;
 	/* temp listbase to store selected strokes */
 	ListBase selected = {NULL};
-	const int direction = RNA_enum_get(op->ptr, "type");
+	const int direction = RNA_enum_get(op->ptr, "direction");
 
 	/* verify if any selected stroke is in the extreme of the stack and select to move */
 	for (gps = gpf->strokes.first; gps; gps = gps->next) {




More information about the Bf-blender-cvs mailing list