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:
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.
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue