[Bf-blender-cvs] [fe8bf5e0c7f] master: Fix T104039: GPencil Fill crash in multiframe

Antonio Vazquez noreply at git.blender.org
Mon Jan 23 18:44:58 CET 2023


Commit: fe8bf5e0c7f03d755f1a39b02378f133bf965be6
Author: Antonio Vazquez
Date:   Mon Jan 23 18:42:56 2023 +0100
Branches: master
https://developer.blender.org/rBfe8bf5e0c7f03d755f1a39b02378f133bf965be6

Fix T104039: GPencil Fill crash in multiframe

The problem was that the stroke array was not reset for 
each iteration of the loop, so the second time around, 
the array was not initialized correctly and 
was left with a NaN value.

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

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 d08c95cd5ae..6b1f5ba1ad0 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -2919,6 +2919,7 @@ static int gpencil_fill_modal(bContext *C, wmOperator *op, const wmEvent *event)
               }
 
               if (extend_lines) {
+                stroke_array_free(tgpf);
                 gpencil_delete_temp_stroke_extension(tgpf, true);
               }



More information about the Bf-blender-cvs mailing list