diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-09-28 21:29:41 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-09-28 21:29:41 +0300 |
commit | 878dea4e0fcca68ba3ad93edeae22114e1252f9e (patch) | |
tree | 91219f85a76990a5ee291d303788e534dd99e531 | |
parent | 6e9320d23719f81460498b03da61634f6d20b367 (diff) |
GPencil: Avoid infinite loop in Fill debug mode
If the internal flag is set to debug and the Ctrl key is used
the program keeps running endless.
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index 4fd96369b4f..aec0af6cd9f 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -2712,6 +2712,9 @@ static bool gpencil_do_frame_fill(tGPDfill *tgpf, const bool is_inverted) gpencil_invert_image(tgpf); while (gpencil_find_and_mark_empty_areas(tgpf)) { gpencil_boundaryfill_area(tgpf); + if (FILL_DEBUG) { + break; + } } } |