[Bf-blender-cvs] [f1dbbbbd45b] temp-gpencil-automask: GPencil: Speed up checking
Antonio Vazquez
noreply at git.blender.org
Mon Oct 10 17:41:51 CEST 2022
Commit: f1dbbbbd45b0aabe48081fd0078b9b3556c9baed
Author: Antonio Vazquez
Date: Mon Oct 10 17:41:42 2022 +0200
Branches: temp-gpencil-automask
https://developer.blender.org/rBf1dbbbbd45b0aabe48081fd0078b9b3556c9baed
GPencil: Speed up checking
===================================================================
M source/blender/editors/gpencil/gpencil_sculpt_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_sculpt_paint.c b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
index 20ca2150e53..b1bcd8ef9b7 100644
--- a/source/blender/editors/gpencil/gpencil_sculpt_paint.c
+++ b/source/blender/editors/gpencil/gpencil_sculpt_paint.c
@@ -1948,7 +1948,7 @@ static bool get_automasking_strokes_list(tGP_BrushEditData *gso)
}
/* Check segment. */
- if (gpencil_stroke_inside_circle(
+ if (!pick_stroke && gpencil_stroke_inside_circle(
gso->mval, radius, pc1[0], pc1[1], pc2[0], pc2[1])) {
pick_stroke = true;
i = gps->totpoints;
More information about the Bf-blender-cvs
mailing list