Fix T70948: Library Override: Parenting library override objects does not save offset from parent.

Parent inverse matrix needs to be overridable as well...
This commit is contained in:
Bastien Montagne 2020-05-20 15:30:28 +02:00
parent d33c27d68b
commit 9897ef6a20
Notes: blender-bot 2023-02-14 05:22:18 +01:00
Referenced by issue #70948, Library Override: Parenting library override objects does not save offset from parent.
1 changed files with 1 additions and 0 deletions

View File

@ -2890,6 +2890,7 @@ static void rna_def_object(BlenderRNA *brna)
prop = RNA_def_property(srna, "matrix_parent_inverse", PROP_FLOAT, PROP_MATRIX);
RNA_def_property_float_sdna(prop, NULL, "parentinv");
RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_4x4);
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_ui_text(
prop, "Parent Inverse Matrix", "Inverse of object's parent matrix at time of parenting");
RNA_def_property_update(prop, NC_OBJECT | ND_TRANSFORM, "rna_Object_internal_update");