Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-09-29 18:16:14 +0300
committerJulian Eisel <julian@blender.org>2021-09-29 18:16:14 +0300
commitea457d4ab516e0cfa0ea28c5b601c02a87805cf1 (patch)
tree46d0c59ece13cf90e6043b3b8bb93030889525ed
parent4a278c282fe6d85f0ceea3f3b94592e595b0b189 (diff)
Update Pose Library add-on to work without asset categories
Pose Library panels are now always displayed in pose mode, and don't hide or unhide anymore depending on the visible asset types.
-rw-r--r--pose_library/gui.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pose_library/gui.py b/pose_library/gui.py
index 2082dff7..da7b77c7 100644
--- a/pose_library/gui.py
+++ b/pose_library/gui.py
@@ -128,7 +128,7 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None:
layout.operator("asset.open_containing_blend_file")
-class ASSETBROWSER_PT_pose_library_usage(PoseLibraryPanel, asset_utils.AssetBrowserSpecificCategoryPanel, Panel):
+class ASSETBROWSER_PT_pose_library_usage(PoseLibraryPanel, asset_utils.AssetBrowserPanel, Panel):
bl_region_type = "TOOLS"
bl_label = "Pose Library"
asset_categories = {'ANIMATIONS'}
@@ -137,7 +137,7 @@ class ASSETBROWSER_PT_pose_library_usage(PoseLibraryPanel, asset_utils.AssetBrow
def poll(cls, context: Context) -> bool:
return (
cls.pose_library_panel_poll(context)
- and cls.asset_category_poll(context)
+ and cls.asset_browser_panel_poll(context)
)
def draw(self, context: Context) -> None:
@@ -160,7 +160,7 @@ class ASSETBROWSER_PT_pose_library_usage(PoseLibraryPanel, asset_utils.AssetBrow
props.select = False
-class ASSETBROWSER_PT_pose_library_editing(PoseLibraryPanel, asset_utils.AssetBrowserSpecificCategoryPanel, Panel):
+class ASSETBROWSER_PT_pose_library_editing(PoseLibraryPanel, asset_utils.AssetBrowserPanel, Panel):
bl_region_type = "TOOL_PROPS"
bl_label = "Pose Library"
asset_categories = {'ANIMATIONS'}
@@ -169,7 +169,7 @@ class ASSETBROWSER_PT_pose_library_editing(PoseLibraryPanel, asset_utils.AssetBr
def poll(cls, context: Context) -> bool:
return (
cls.pose_library_panel_poll(context)
- and cls.asset_category_poll(context)
+ and cls.asset_browser_panel_poll(context)
)
def draw(self, context: Context) -> None: