[Bf-blender-cvs] [c0aabee] master: GPencil: Don't show error popup when strokes can't be reordered further

Julian Eisel noreply at git.blender.org
Sun Sep 18 19:08:45 CEST 2016


Commit: c0aabeede8775c790be489e7e28f34f87b7271f3
Author: Julian Eisel
Date:   Sun Sep 18 18:46:22 2016 +0200
Branches: master
https://developer.blender.org/rBc0aabeede8775c790be489e7e28f34f87b7271f3

GPencil: Don't show error popup when strokes can't be reordered further

Was spawning error popup each time user tried to move a stroke higher or lower than the list allowed. We don't do that anywhere else and it's not really useful info for the user. So rather not bother her.

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

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 01d388b..ce1e397 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -761,14 +761,12 @@ static int gp_stroke_arrange_exec(bContext *C, wmOperator *op)
 			/* some stroke is already at front*/
 			if ((direction == GP_STROKE_MOVE_TOP) || (direction == GP_STROKE_MOVE_UP)) {
 				if (gps == gpf->strokes.last) {
-					BKE_report(op->reports, RPT_ERROR, "Some selected stroke is already on top");
 					return OPERATOR_CANCELLED;
 				}
 			}
 			/* some stroke is already at botom */
 			if ((direction == GP_STROKE_MOVE_BOTTOM) || (direction == GP_STROKE_MOVE_DOWN)) {
 				if (gps == gpf->strokes.first) {
-					BKE_report(op->reports, RPT_ERROR, "Some selected stroke is already on bottom");
 					return OPERATOR_CANCELLED;
 				}
 			}




More information about the Bf-blender-cvs mailing list