Fix T89366: GPencil hide layers above parented layer

The problem was the flag was not reset by layer in the loop.
This commit is contained in:
Antonio Vazquez 2021-06-22 19:47:13 +02:00
parent ebfad93039
commit 1917d0345e
Notes: blender-bot 2023-02-13 22:38:46 +01:00
Referenced by issue #96057, Grease Pencil layer disappear from viewport due to armature
Referenced by issue #89366, Grease Pencil Parenting works but hides layers above the parented one.
1 changed files with 2 additions and 1 deletions

View File

@ -3009,8 +3009,9 @@ void BKE_gpencil_update_layer_transforms(const Depsgraph *depsgraph, Object *ob)
bGPdata *gpd = (bGPdata *)ob->data;
float cur_mat[4][4];
bool changed = false;
LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) {
bool changed = false;
unit_m4(cur_mat);
if (gpl->actframe != NULL) {
if (gpl->parent != NULL) {