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 21:29:41 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-09-28 21:29:41 +0300
commit878dea4e0fcca68ba3ad93edeae22114e1252f9e (patch)
tree91219f85a76990a5ee291d303788e534dd99e531
parent6e9320d23719f81460498b03da61634f6d20b367 (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.c3
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;
+ }
}
}