[Bf-blender-cvs] [90d755bf217] asset-metadata: Add access to asset-data from ID

Julian Eisel noreply at git.blender.org
Thu Jul 9 20:30:44 CEST 2020


Commit: 90d755bf21794e9a6c7b06c8e22d195bbf558963
Author: Julian Eisel
Date:   Thu Jul 9 20:30:19 2020 +0200
Branches: asset-metadata
https://developer.blender.org/rB90d755bf21794e9a6c7b06c8e22d195bbf558963

Add access to asset-data from ID

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

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 46001f27fef..ad358fc5c0f 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -1512,6 +1512,11 @@ static void rna_def_ID(BlenderRNA *brna)
   RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
   RNA_def_property_ui_text(prop, "Library", "Library file the data-block is linked from");
 
+  prop = RNA_def_property(srna, "asset_data", PROP_POINTER, PROP_NONE);
+  RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+  RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
+  RNA_def_property_ui_text(prop, "Asset Data", "Additional data for an asset data-block");
+
   prop = RNA_def_pointer(
       srna, "override_library", "IDOverrideLibrary", "Library Override", "Library override data");
   RNA_def_property_clear_flag(prop, PROP_EDITABLE);



More information about the Bf-blender-cvs mailing list