[Bf-blender-cvs] [24a79289b01] blender-v3.0-release: Asset Browser: Fix incorrect user message

Julian Eisel noreply at git.blender.org
Mon Jan 10 17:04:39 CET 2022


Commit: 24a79289b01e6d9d4d929c0e5f88d2820cc55198
Author: Julian Eisel
Date:   Tue Nov 30 12:56:46 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB24a79289b01e6d9d4d929c0e5f88d2820cc55198

Asset Browser: Fix incorrect user message

Text would display "No asset selected" when it actually inidicates that
there is no asset active (not selected). Changed it to "No active asset"
now.

===================================================================

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 5c34602d1c8..e33cf8d6cfb 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -707,7 +707,7 @@ class ASSETBROWSER_PT_metadata(asset_utils.AssetBrowserPanel, Panel):
         asset_file_handle = context.asset_file_handle
 
         if asset_file_handle is None:
-            layout.label(text="No asset selected", icon='INFO')
+            layout.label(text="No active asset", icon='INFO')
             return
 
         asset_library_ref = context.asset_library_ref



More information about the Bf-blender-cvs mailing list