Blender Git Loki

Git Commits -> Revision 1352d81

Revision 1352d81 by Antonio Vazquez (master)
February 9, 2021, 15:00 (GMT)
GPencil: Fill tool refactor and Multiframe in Draw mode

This commit is a refactor of the fill tool to solve several problems we had since the first version of the tool.

Changes:

* The filling speed has been improved for each step of the process with the optimization of each algorithm/function.
* New `AutoFit` option to fill areas outside of the viewport. When enable, the total size of the frame is calculated to fit the filling area.
* New support multiframe filling. Now it is possible to fill multiple similar frames in one go.
* New `Stroke Extension` option to create temporary closing strokes. These strokes can be displayed and adjusted dynamically using wheel mouse or PageUp/Down keys.
* Parameter `Resolution` now is named `Precision` and has been moved to topbar.
* `Resolution` now has decimals and can be lower than 1 to allow quick filling in storyboarding workflows. Maximum value has been set as 5.
* Parameter `Simplify` has been moved to Advanced panel.
* Improved fill outline detection. In some cases, the outline penetrated the area to be filled with unexpected results.
* Fixes some corner case bugs with infinite loops.

As a result of this refactor, also these new functionalities has been added.

* New support for multiframe in `Draw` mode. Any drawing in active frame is duplicated to all selected frame.
* New multiframe display mode. Keyframes before or after of the active frame are displayed using onion colors. This can be disable using Onion overlay options.

Commit Details:

Full Hash: 1352d81b174726639bbfb6f7aa32dbadf188a8dd
Parent Commit: 5213b18
Lines Changed: +1082, -377

20 Modified Paths:

/release/scripts/startup/bl_ui/properties_paint_common.py (+3, -1) (Diff)
/release/scripts/startup/bl_ui/space_view3d.py (+4, -0) (Diff)
/release/scripts/startup/bl_ui/space_view3d_toolbar.py (+7, -2) (Diff)
/source/blender/blenkernel/BKE_gpencil.h (+2, -0) (Diff)
/source/blender/blenkernel/BKE_gpencil_geom.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/brush.c (+3, -1) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+32, -0) (Diff)
/source/blender/blenkernel/intern/gpencil_geom.c (+39, -0) (Diff)
/source/blender/editors/gpencil/drawgpencil.c (+6, -5) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+8, -2) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+74, -41) (Diff)
/source/blender/editors/gpencil/gpencil_fill.c (+794, -284) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+48, -29) (Diff)
/source/blender/editors/gpencil/gpencil_primitive.c (+6, -0) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+7, -7) (Diff)
/source/blender/editors/include/ED_gpencil.h (+5, -0) (Diff)
/source/blender/makesdna/DNA_brush_enums.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_brush_types.h (+4, -2) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+6, -2) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+25, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021