Fix asset data-block name button not showing up in custom repositories

The Python syntax was wrong, as noted by Campbell in 0ae15e68c7.
This commit is contained in:
Julian Eisel 2020-12-17 11:39:45 +01:00
parent 6203a3ee68
commit 2945c1e3e5
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ class ASSETBROWSER_PT_metadata(asset_utils.AssetBrowserPanel, Panel):
return
# If the active file is an ID, use its name directly so renaming is possible from right here.
layout.prop(context.id if not None else active_file, "name", text="")
layout.prop(context.id if context.id is not None else active_file, "name", text="")
class ASSETBROWSER_PT_metadata_preview(asset_utils.AssetMetaDataPanel, Panel):