[Bf-blender-cvs] [b37b317] master: Add RNA access to packed libraries

Campbell Barton noreply at git.blender.org
Tue Aug 5 19:12:38 CEST 2014


Commit: b37b3171734b22f649e3de205377fe7e994a407c
Author: Campbell Barton
Date:   Wed Aug 6 03:10:53 2014 +1000
Branches: master
https://developer.blender.org/rBb37b3171734b22f649e3de205377fe7e994a407c

Add RNA access to packed libraries

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

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

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

diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index c0c0455..83fe561 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -625,6 +625,10 @@ static void rna_def_library(BlenderRNA *brna)
 	prop = RNA_def_property(srna, "parent", PROP_POINTER, PROP_NONE);
 	RNA_def_property_struct_type(prop, "Library");
 	RNA_def_property_ui_text(prop, "Parent", "");
+
+	prop = RNA_def_property(srna, "packed_file", PROP_POINTER, PROP_NONE);
+	RNA_def_property_pointer_sdna(prop, NULL, "packedfile");
+	RNA_def_property_ui_text(prop, "Packed File", "");
 }
 void RNA_def_ID(BlenderRNA *brna)
 {




More information about the Bf-blender-cvs mailing list