Fix T96101: "Remove" button failure on Grease Pencil layer's relation to bone
As the channel was not found, the relation data was not updated. Now, if the bone is removed, the relation is set.
This commit is contained in:
parent
34267a868a
commit
ca0b728529
Notes:
blender-bot
2023-02-13 23:17:13 +01:00
Referenced by issue #96101, "Remove" button failure on Grease Pencil layer's relation to bone
|
@ -356,6 +356,12 @@ static void set_parent(bGPDlayer *gpl, Object *par, const int type, const char *
|
|||
gpl->partype |= PARBONE;
|
||||
BLI_strncpy(gpl->parsubstr, substr, sizeof(gpl->parsubstr));
|
||||
}
|
||||
else {
|
||||
invert_m4_m4(gpl->inverse, par->obmat);
|
||||
gpl->parent = par;
|
||||
gpl->partype |= PAROBJECT;
|
||||
gpl->parsubstr[0] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue