Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-04-22 12:25:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-22 12:25:05 +0400
commitc8c22d2cf65504443574961cea0ec1773c18735e (patch)
treeafa73d294dae59d07852d67ca3fa5786c8e2f219 /source/blender/makesrna/intern/rna_ID.c
parenta2b6abeee15f359ddeafdea7a2f3a965da0bf410 (diff)
rna: added lib.parent access and made filename editable.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r--source/blender/makesrna/intern/rna_ID.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index 3263d816ad0..50ab36bd4a4 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -401,8 +401,12 @@ static void rna_def_library(BlenderRNA *brna)
prop= RNA_def_property(srna, "filename", PROP_STRING, PROP_FILEPATH);
RNA_def_property_string_sdna(prop, NULL, "name");
- RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Filename", "Path to the library .blend file");
+ /* TODO - lib->filename isnt updated, however the outliner also skips this, probably only needed on read. */
+
+ prop= RNA_def_property(srna, "parent", PROP_POINTER, PROP_NONE);
+ RNA_def_property_struct_type(prop, "ID");
+ RNA_def_property_ui_text(prop, "Parent", "");
}
void RNA_def_ID(BlenderRNA *brna)
{