Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2016-09-18 19:46:22 +0300
committerJulian Eisel <eiseljulian@gmail.com>2016-09-18 20:08:20 +0300
commitc0aabeede8775c790be489e7e28f34f87b7271f3 (patch)
treedc5e411867665defd30da8dbe042c9482a205cc5 /source/blender/editors/gpencil
parent940f360479f2d160e63d91dd7c64d4a91471fa73 (diff)
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.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_data.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index 01d388be658..ce1e397e91c 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;
}
}