diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-10-31 11:37:10 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-10-31 11:37:10 +0300 |
commit | e7dc3c91ab8273fcb26eb1273e4b6e559535514c (patch) | |
tree | f1def09a22321c51c052bdbe802fc01ede3351ca /source | |
parent | fe90bb86c0284065fe671d8d49c411cfa1c7c363 (diff) |
GPencil: Change maximum limit of Join stroke
Also, clarify comments.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 6 |
1 files changed, 4 insertions, 2 deletions
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"); |