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 /release/scripts/startup/bl_ui
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 'release/scripts/startup/bl_ui')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 95185c2a2f5..12e05840cfa 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1893,6 +1893,12 @@ class VIEW3D_PT_tools_grease_pencil_brush_gap_closure(View3DPanel, Panel):
row = col.row(align=True)
row.prop(gp_settings, "show_fill_extend", text="Visual Aids")
+ if gp_settings.fill_extend_mode == 'EXTEND':
+ row = col.row(align=True)
+ row.prop(gp_settings, "use_collide_strokes")
+ row = col.row(align=True)
+ row.prop(gp_settings, "use_collide_only")
+
# Grease Pencil stroke sculpting tools
class GreasePencilSculptPanel: