[Bf-blender-cvs] [e7dc3c91ab8] master: GPencil: Change maximum limit of Join stroke

Antonio Vazquez noreply at git.blender.org
Sat Oct 31 09:37:31 CET 2020


Commit: e7dc3c91ab8273fcb26eb1273e4b6e559535514c
Author: Antonio Vazquez
Date:   Sat Oct 31 09:37:10 2020 +0100
Branches: master
https://developer.blender.org/rBe7dc3c91ab8273fcb26eb1273e4b6e559535514c

GPencil: Change maximum limit of Join stroke

Also, clarify comments.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index aae92f5ed50..77575d88cd3 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -3526,8 +3526,10 @@ static int gpencil_stroke_join_exec(bContext *C, wmOperator *op)
   bGPdata *gpd = ED_gpencil_data_get_active(C);
   bGPDlayer *activegpl = BKE_gpencil_layer_active_get(gpd);
   Object *ob = CTX_data_active_object(C);
-  /* Limit the number of strokes to join. */
-  const int max_join_strokes = 64;
+  /* Limit the number of strokes to join. It makes no sense to allow an very high number of strokes
+   * for CPU time and because to have a stroke with thousands of points is unpractical, so limit
+   * this number avoid to joining a full frame scene in one single stroke. */
+  const int max_join_strokes = 128;
 
   const int type = RNA_enum_get(op->ptr, "type");
   const bool leave_gaps = RNA_boolean_get(op->ptr, "leave_gaps");



More information about the Bf-blender-cvs mailing list