diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-22 15:03:02 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-22 15:03:39 +0300 |
commit | 85c6f0b472ed246841c3153ce984f2dff8312ead (patch) | |
tree | 3390bcd59576750751c99a688523ef2cc7df460b /source/blender/makesrna | |
parent | 961fa2251ef5042cd5e3d3cf1897769434da3452 (diff) |
LibOverride: Add CacheFile properties as overridable.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_cachefile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_cachefile.c b/source/blender/makesrna/intern/rna_cachefile.c index 7b4b7c11c17..f9275ef1993 100644 --- a/source/blender/makesrna/intern/rna_cachefile.c +++ b/source/blender/makesrna/intern/rna_cachefile.c @@ -69,9 +69,13 @@ static void rna_def_alembic_object_path(BlenderRNA *brna) RNA_def_struct_ui_text(srna, "Object Path", "Path of an object inside of an Alembic archive"); RNA_def_struct_ui_icon(srna, ICON_NONE); + RNA_define_lib_overridable(true); + PropertyRNA *prop = RNA_def_property(srna, "path", PROP_STRING, PROP_NONE); RNA_def_property_ui_text(prop, "Path", "Object path"); RNA_def_struct_name_property(srna, prop); + + RNA_define_lib_overridable(false); } /* cachefile.object_paths */ @@ -90,6 +94,8 @@ static void rna_def_cachefile(BlenderRNA *brna) RNA_def_struct_ui_text(srna, "CacheFile", ""); RNA_def_struct_ui_icon(srna, ICON_FILE); + RNA_define_lib_overridable(true); + PropertyRNA *prop = RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH); RNA_def_property_ui_text(prop, "File Path", "Path to external displacements file"); RNA_def_property_update(prop, 0, "rna_CacheFile_update"); @@ -167,6 +173,9 @@ static void rna_def_cachefile(BlenderRNA *brna) RNA_def_property_srna(prop, "AlembicObjectPaths"); RNA_def_property_ui_text( prop, "Object Paths", "Paths of the objects inside the Alembic archive"); + + RNA_define_lib_overridable(false); + rna_def_cachefile_object_paths(brna, prop); rna_def_animdata_common(srna); |