[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46714] trunk/blender/source/blender/ makesrna/intern/rna_ID.c: added readonly rna ID attribute ID. is_library_indirect, so python can tell if a link is direct or not.

Campbell Barton ideasman42 at gmail.com
Thu May 17 11:17:39 CEST 2012


Revision: 46714
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46714
Author:   campbellbarton
Date:     2012-05-17 09:17:39 +0000 (Thu, 17 May 2012)
Log Message:
-----------
added readonly rna ID attribute ID.is_library_indirect, so python can tell if a link is direct or not.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_ID.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_ID.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ID.c	2012-05-17 08:42:22 UTC (rev 46713)
+++ trunk/blender/source/blender/makesrna/intern/rna_ID.c	2012-05-17 09:17:39 UTC (rev 46714)
@@ -531,6 +531,11 @@
 	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);




More information about the Bf-blender-cvs mailing list