[Bf-blender-cvs] [36fb03e2b9d] master: Asset: Clearly describe RNA property description as temporary

Julian Eisel noreply at git.blender.org
Tue Jul 20 21:50:34 CEST 2021


Commit: 36fb03e2b9d7796404a0ab64ab147f06c61451c7
Author: Julian Eisel
Date:   Tue Jul 20 20:00:55 2021 +0200
Branches: master
https://developer.blender.org/rB36fb03e2b9d7796404a0ab64ab147f06c61451c7

Asset: Clearly describe RNA property description as temporary

The asset handle design is only temporary (see 35affaa971cf) and this
RNA property is only needed for internal, technical reasons of the asset
view template. So although not nice, at least make it clear in the RNA
property description that this should not be used.

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

M	source/blender/makesrna/intern/rna_asset.c

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

diff --git a/source/blender/makesrna/intern/rna_asset.c b/source/blender/makesrna/intern/rna_asset.c
index 3b39a4edb32..dad35425bda 100644
--- a/source/blender/makesrna/intern/rna_asset.c
+++ b/source/blender/makesrna/intern/rna_asset.c
@@ -351,7 +351,8 @@ static void rna_def_asset_handle(BlenderRNA *brna)
   RNA_def_property_struct_type(prop, "FileSelectEntry");
   RNA_def_property_pointer_funcs(
       prop, "rna_AssetHandle_file_data_get", "rna_AssetHandle_file_data_set", NULL, NULL);
-  RNA_def_property_ui_text(prop, "File Entry", "File data used to refer to the asset");
+  RNA_def_property_ui_text(
+      prop, "File Entry", "TEMPORARY, DO NOT USE - File data used to refer to the asset");
 
   prop = RNA_def_property(srna, "local_id", PROP_POINTER, PROP_NONE);
   RNA_def_property_struct_type(prop, "ID");



More information about the Bf-blender-cvs mailing list