Skip to content
Snippets Groups Projects
Commit d4d32b37 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Pose library: fix context menu

The Pose Library context menu was broken in the 3D Viewport's template
view by a958ae36e8cbe687c77f77b375a2dd21c01d271d.

That commit removed `asset_handle` from the context, and added
`active_file`, so now the pose library context menu code uses that instead.
parent edb61b02
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None: ...@@ -62,7 +62,7 @@ def pose_library_list_item_context_menu(self: UIList, context: Context) -> None:
list = getattr(context, "ui_list", None) list = getattr(context, "ui_list", None)
if not list or list.bl_idname != "UI_UL_asset_view" or list.list_id != "pose_assets": if not list or list.bl_idname != "UI_UL_asset_view" or list.list_id != "pose_assets":
return False return False
if not context.asset_handle: if not context.active_file:
return False return False
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment