diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-26 19:25:28 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-29 18:28:04 +0300 |
commit | 5024c5427140c2d23b1c4c21853becd23c39cd57 (patch) | |
tree | d076658f14c7b6a1e90e16a0b8c6f0c3d38ba214 /source/blender/makesrna/intern/rna_lattice.c | |
parent | 583cfe25967bdeb253d78838aa16c4b1f27cbe7f (diff) |
RNA: properly tag 'embedded' ID pointers as owned.
This is important at several level, mainly for overrides currently.
Note that this also includes shape keys, since from RNA point of view
those are also 'embedded' (they are not editable, not linkable, ...).
Diffstat (limited to 'source/blender/makesrna/intern/rna_lattice.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_lattice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_lattice.c b/source/blender/makesrna/intern/rna_lattice.c index 176fb838e91..fbbee1f5900 100644 --- a/source/blender/makesrna/intern/rna_lattice.c +++ b/source/blender/makesrna/intern/rna_lattice.c @@ -382,6 +382,8 @@ static void rna_def_lattice(BlenderRNA *brna) prop = RNA_def_property(srna, "shape_keys", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "key"); + RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); + RNA_def_property_clear_flag(prop, PROP_PTR_NO_OWNERSHIP); RNA_def_property_ui_text(prop, "Shape Keys", ""); prop = RNA_def_property(srna, "points", PROP_COLLECTION, PROP_NONE); |