[Bf-blender-cvs] [2945c1e3e55] master: Fix asset data-block name button not showing up in custom repositories
Julian Eisel
noreply at git.blender.org
Thu Dec 17 11:41:07 CET 2020
Commit: 2945c1e3e55ee12c90464246977de17d28870eb8
Author: Julian Eisel
Date: Thu Dec 17 11:39:45 2020 +0100
Branches: master
https://developer.blender.org/rB2945c1e3e55ee12c90464246977de17d28870eb8
Fix asset data-block name button not showing up in custom repositories
The Python syntax was wrong, as noted by Campbell in 0ae15e68c785.
===================================================================
M release/scripts/startup/bl_ui/space_filebrowser.py
===================================================================
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):
More information about the Bf-blender-cvs
mailing list