From 878dea4e0fcca68ba3ad93edeae22114e1252f9e Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Wed, 28 Sep 2022 20:29:41 +0200 Subject: 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. --- source/blender/editors/gpencil/gpencil_fill.c | 3 +++ 1 file changed, 3 insertions(+) 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; + } } } -- cgit v1.2.3