When setting layer parent, if the parent is an armature object, then the child bone matrix needs to be taken into account for doing inverse transformations. This fix allows grease pencil layer to be parented to a bone correctly. Pull Request: https://projects.blender.org/blender/blender/pulls/131432