Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-12-17 13:39:45 +0300
committerJulian Eisel <julian@blender.org>2020-12-17 13:39:45 +0300
commit2945c1e3e55ee12c90464246977de17d28870eb8 (patch)
tree0c921686985f90d9cb41cbdbcad4700069b55ef0
parent6203a3ee684d704f2270edde4df80e2549d1a38d (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.py2
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):