[Bf-blender-cvs] [5b20d06863e] temp-asset-browser-catalogs-ui: Disable asset category checking in script, avoids warning

Julian Eisel noreply at git.blender.org
Wed Sep 15 22:33:24 CEST 2021


Commit: 5b20d06863eb3559aa80b64cee28e2c49ae43e8a
Author: Julian Eisel
Date:   Wed Sep 15 22:24:10 2021 +0200
Branches: temp-asset-browser-catalogs-ui
https://developer.blender.org/rB5b20d06863eb3559aa80b64cee28e2c49ae43e8a

Disable asset category checking in script, avoids warning

For now just always show category specific panels in the Asset Browser,
until we have a proper heuristic implemented for deciding when to show
them, based on catalogs.

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

M	release/scripts/modules/bpy_extras/asset_utils.py

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

diff --git a/release/scripts/modules/bpy_extras/asset_utils.py b/release/scripts/modules/bpy_extras/asset_utils.py
index 2cd5dddefbc..49f095cf9d0 100644
--- a/release/scripts/modules/bpy_extras/asset_utils.py
+++ b/release/scripts/modules/bpy_extras/asset_utils.py
@@ -63,7 +63,7 @@ class AssetBrowserSpecificCategoryPanel(AssetBrowserPanel):
     def poll(cls, context):
         return (
             SpaceAssetInfo.is_asset_browser_poll(context)
-            and context.space_data.params.asset_category in cls.asset_categories
+#            and context.space_data.params.asset_category in cls.asset_categories
         )



More information about the Bf-blender-cvs mailing list