Fix T82356: Gpencil merge freezes Blender

The `gps_next` variable had a typo error and was wrongly used as `gps->next`
This commit is contained in:
Antonio Vazquez 2020-11-03 16:38:43 +01:00
parent e699546bde
commit 0cf46631e1
Notes: blender-bot 2023-02-14 08:40:26 +01:00
Referenced by issue #82356, GPencil: `Merge Points` on different layers freezes Blender
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ static int gpencil_analyze_strokes(tGPencilPointCache *src_array,
BLI_ghash_free(strokes, NULL, NULL);
/* add the stroke to array */
if (gps->next != NULL) {
if (gps_next != NULL) {
BLI_ghash_insert(all_strokes, gps_next, gps_next);
last = gpencil_insert_to_array(src_array, dst_array, totpoints, gps_next, reverse, last);
/* replace last end */