From 774f59dd0786fe1dca36dee3655d33ce138a3273 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 22 May 2024 20:22:47 +1000 Subject: [PATCH] Cleanup: remove unnecessary check left in last commit Should have been removed in 236c0f61b1e1686f1b053a290c8b8a526f94721f. --- scripts/modules/bpy_extras/asset_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modules/bpy_extras/asset_utils.py b/scripts/modules/bpy_extras/asset_utils.py index 3dc72f3d7ab..22d810caa6d 100644 --- a/scripts/modules/bpy_extras/asset_utils.py +++ b/scripts/modules/bpy_extras/asset_utils.py @@ -28,7 +28,7 @@ class SpaceAssetInfo: @classmethod def get_active_asset(cls, context: Context): if active_file := getattr(context, "active_file", None): - return active_file.asset_data if active_file else None + return active_file.asset_data class AssetBrowserPanel: