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:
authorAntonio Vazquez <blendergit@gmail.com>2022-09-28 15:32:56 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-09-28 16:44:20 +0300
commitfe19de5fccac1a26bfe87bc41386791e5ee049f2 (patch)
tree6a746fd233b3bc3785b44960968439cd8a1ed8b7 /source/blender/makesdna
parente191cf89b280343d0bb04e76ddac7fd67a034205 (diff)
GPencil: Fill Tool - Check if extensions collide with real strokes
This commit is an improvement in the previous fill tool changes in order to improve how the extended strokes are managed. * Now, the algorithm checks if the extend cross a standard stroke, not only extend strokes. * Option to enable or disable the stroke cross checking because this can be slow in very complex scenes. * Added `D` key to toggle stroke cross option. * Option to use only collide strokes to be used as fill limit. If the option to use only collide strokes is enabled, the open extensions are in different color. * Status text now shows mode and the actual extend factor. This commits also contains a refactor of the loops to use arrays as much as possible. Reviewed By: mendio, pepeland Differential Revision: https://developer.blender.org/D16052
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_brush_enums.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_enums.h b/source/blender/makesdna/DNA_brush_enums.h
index 476000d8885..7a339c3955a 100644
--- a/source/blender/makesdna/DNA_brush_enums.h
+++ b/source/blender/makesdna/DNA_brush_enums.h
@@ -89,6 +89,10 @@ typedef enum eGPDbrush_Flag {
GP_BRUSH_TRIM_STROKE = (1 << 16),
/* Post process convert to outline stroke */
GP_BRUSH_OUTLINE_STROKE = (1 << 17),
+ /* Collide with stroke. */
+ GP_BRUSH_FILL_STROKE_COLLIDE = (1 << 18),
+ /* Extend lines only close if collide. */
+ GP_BRUSH_FILL_COLLIDE_ONLY = (1 << 19),
} eGPDbrush_Flag;
typedef enum eGPDbrush_Flag2 {