Fix T101548: GPencil new lines in Multiframe editing appear as Onion

The problem was the eval data update only occurs for the 
actual frame and in this case must be for all frames.
This commit is contained in:
Antonio Vazquez 2022-10-03 10:38:00 +02:00
parent 7029f11439
commit 035c237d69
Notes: blender-bot 2023-02-13 14:21:06 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #101548, Grease Pencil: New lines in Multiframe editing appear as Onion skinning overlay
1 changed files with 2 additions and 1 deletions

View File

@ -1387,7 +1387,8 @@ static void gpencil_stroke_newfrombuffer(tGPsdata *p)
}
gpencil_update_cache(p->gpd);
BKE_gpencil_tag_full_update(p->gpd, gpl, p->gpf, NULL);
BKE_gpencil_tag_full_update(
p->gpd, gpl, (GPENCIL_MULTIEDIT_SESSIONS_ON(p->gpd)) ? NULL : p->gpf, NULL);
}
/* --- 'Eraser' for 'Paint' Tool ------ */