Pose Library: only show Asset Browser panels in relevant category
Only show the Pose Library panels in the Asset Browser if it is showing the Animations category.
This commit is contained in:
parent
97afb6637f
commit
3e1ffc208d
Notes:
blender-bot
2023-02-13 18:54:46 +01:00
Referenced by issue blender/blender#87657: Hide Asset Browser Pose Library panels while not showing poses Referenced by issue blender/blender#87657, Hide Asset Browser Pose Library panels while not showing poses
|
@ -111,9 +111,10 @@ 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(asset_utils.AssetBrowserPanel, Panel):
|
||||
class ASSETBROWSER_PT_pose_library_usage(asset_utils.AssetBrowserSpecificCategoryPanel, Panel):
|
||||
bl_region_type = "TOOLS"
|
||||
bl_label = "Pose Library"
|
||||
asset_categories = {'ANIMATIONS'}
|
||||
|
||||
def draw(self, context: Context) -> None:
|
||||
layout = self.layout
|
||||
|
@ -136,9 +137,10 @@ class ASSETBROWSER_PT_pose_library_usage(asset_utils.AssetBrowserPanel, Panel):
|
|||
props.select = False
|
||||
|
||||
|
||||
class ASSETBROWSER_PT_pose_library_editing(asset_utils.AssetBrowserPanel, Panel):
|
||||
class ASSETBROWSER_PT_pose_library_editing(asset_utils.AssetBrowserSpecificCategoryPanel, Panel):
|
||||
bl_region_type = "TOOL_PROPS"
|
||||
bl_label = "Pose Library"
|
||||
asset_categories = {'ANIMATIONS'}
|
||||
|
||||
def draw(self, context: Context) -> None:
|
||||
layout = self.layout
|
||||
|
|
Loading…
Reference in New Issue