Commit: 85c6f0b472ed246841c3153ce984f2dff8312ead
Author: Bastien Montagne
Date:   Mon Jun 22 14:03:02 2020 +0200
Branches: master
https://developer.blender.org/rB85c6f0b472ed246841c3153ce984f2dff8312ead

LibOverride: Add CacheFile properties as overridable.

===================================================================

M       source/blender/makesrna/intern/rna_cachefile.c

===================================================================

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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to