diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-17 13:17:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-17 13:17:39 +0400 |
commit | dfa075b66246f845a933611e768c638fb8c10bf5 (patch) | |
tree | 0a5362e3653fa248534db3b3da1cbe82d6140004 | |
parent | 63eb324bcb5f50b482e16edeadcf7d44bce0e123 (diff) |
added readonly rna ID attribute ID.is_library_indirect, so python can tell if a link is direct or not.
-rw-r--r-- | source/blender/makesrna/intern/rna_ID.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c index 94298cc034c..6a54c04b44d 100644 --- a/source/blender/makesrna/intern/rna_ID.c +++ b/source/blender/makesrna/intern/rna_ID.c @@ -531,6 +531,11 @@ static void rna_def_ID(BlenderRNA *brna) RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Is Updated Data", "Datablock data is tagged for recalculation"); + prop = RNA_def_property(srna, "is_library_indirect", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", LIB_INDIRECT); + RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_ui_text(prop, "Is Indirect", "Is this ID block linked indirectly"); + prop = RNA_def_property(srna, "library", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "lib"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); |