Commit: ca0b72852961571d0099a7274fb34291494f3b45
Author: Antonio Vazquez
Date: Wed Mar 2 17:48:20 2022 +0100
Branches: master
https://developer.blender.org/rBca0b72852961571d0099a7274fb34291494f3b45
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.
===================================================================
M source/blender/makesrna/intern/rna_gpencil.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_gpencil.c
b/source/blender/makesrna/intern/rna_gpencil.c
index e7834034699..ba94fbe88e5 100644
--- a/source/blender/makesrna/intern/rna_gpencil.c
+++ b/source/blender/makesrna/intern/rna_gpencil.c
@@ -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;
+ }
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs