Add RNA access to packed libraries

This commit is contained in:
2014-08-06 03:10:53 +10:00
parent a48b372b04
commit b37b317173

View File

@@ -625,6 +625,10 @@ static void rna_def_library(BlenderRNA *brna)
prop = RNA_def_property(srna, "parent", PROP_POINTER, PROP_NONE); prop = RNA_def_property(srna, "parent", PROP_POINTER, PROP_NONE);
RNA_def_property_struct_type(prop, "Library"); RNA_def_property_struct_type(prop, "Library");
RNA_def_property_ui_text(prop, "Parent", ""); 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) void RNA_def_ID(BlenderRNA *brna)
{ {