[Bf-blender-cvs] [8f41f361506] asset-browser: Remove "Author" from asset metadata
Julian Eisel
noreply at git.blender.org
Tue Dec 1 19:23:04 CET 2020
Commit: 8f41f361506f95a1188a1e4ffda07f79ec597f19
Author: Julian Eisel
Date: Tue Dec 1 19:08:12 2020 +0100
Branches: asset-browser
https://developer.blender.org/rB8f41f361506f95a1188a1e4ffda07f79ec597f19
Remove "Author" from asset metadata
This can become a custom property, based on review feedback we don't need to
have this builtin.
===================================================================
M release/scripts/startup/bl_ui/space_filebrowser.py
M source/blender/makesdna/DNA_asset_types.h
M source/blender/makesrna/intern/rna_asset.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 51ab2c512ad..45f9493d87c 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -598,7 +598,6 @@ class ASSETBROWSER_PT_metadata_details(asset_utils.AssetBrowserPanel, Panel):
layout.use_property_split = True
if active_asset:
- layout.prop(active_asset, "author")
layout.prop(active_asset, "description")
diff --git a/source/blender/makesdna/DNA_asset_types.h b/source/blender/makesdna/DNA_asset_types.h
index aada316c944..ae7a4ac5873 100644
--- a/source/blender/makesdna/DNA_asset_types.h
+++ b/source/blender/makesdna/DNA_asset_types.h
@@ -47,8 +47,6 @@ typedef struct AssetMetaData {
/** Optional description of this asset for display in the UI. Dynamic length. */
char *description;
- /** Optional name of the person that created this asset. */
- char author[64]; /* MAX_NAME */
/** User defined tags for this asset. The asset manager uses these for filtering, but how they
* function exactly (e.g. how they are registered to provide a list of searchable available tags)
* is up to the asset-engine. */
diff --git a/source/blender/makesrna/intern/rna_asset.c b/source/blender/makesrna/intern/rna_asset.c
index 0d94476d72a..fa9701a64b9 100644
--- a/source/blender/makesrna/intern/rna_asset.c
+++ b/source/blender/makesrna/intern/rna_asset.c
@@ -201,10 +201,6 @@ static void rna_def_asset_data(BlenderRNA *brna)
RNA_def_property_ui_text(
prop, "Description", "A description of the asset to be displayed for the user");
- prop = RNA_def_property(srna, "author", PROP_STRING, PROP_NONE);
- RNA_def_property_string_maxlength(prop, MAX_NAME);
- RNA_def_property_ui_text(prop, "Author", "Name of the person responsible for the asset");
-
prop = RNA_def_property(srna, "tags", PROP_COLLECTION, PROP_NONE);
RNA_def_property_struct_type(prop, "AssetTag");
RNA_def_property_flag(prop, PROP_EDITABLE);
More information about the Bf-blender-cvs
mailing list