diff options
author | Julian Eisel <julian@blender.org> | 2020-12-17 13:39:45 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-12-17 13:39:45 +0300 |
commit | 2945c1e3e55ee12c90464246977de17d28870eb8 (patch) | |
tree | 0c921686985f90d9cb41cbdbcad4700069b55ef0 | |
parent | 6203a3ee684d704f2270edde4df80e2549d1a38d (diff) |
Fix asset data-block name button not showing up in custom repositories
The Python syntax was wrong, as noted by Campbell in 0ae15e68c785.
-rw-r--r-- | release/scripts/startup/bl_ui/space_filebrowser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index 58a4269ab96..98b155d8a21 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -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): |