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: