[Bf-blender-cvs] [878dea4e0fc] master: GPencil: Avoid infinite loop in Fill debug mode

Antonio Vazquez noreply at git.blender.org
Wed Sep 28 20:29:47 CEST 2022


Commit: 878dea4e0fcca68ba3ad93edeae22114e1252f9e
Author: Antonio Vazquez
Date:   Wed Sep 28 20:29:41 2022 +0200
Branches: master
https://developer.blender.org/rB878dea4e0fcca68ba3ad93edeae22114e1252f9e

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.

===================================================================

M	source/blender/editors/gpencil/gpencil_fill.c

===================================================================

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;
+          }
         }
       }



More information about the Bf-blender-cvs mailing list