Pose Library: Update to use the asset shelf (when enabled) #104546

Merged
Julian Eisel merged 33 commits from asset-shelf into main 2023-08-04 15:00:21 +02:00
Showing only changes of commit 6f8650f3a0 - Show all commits

View File

@ -37,7 +37,7 @@ class VIEW3D_AST_pose_library(bpy.types.AssetShelf):
return PoseLibraryPanel.poll(context) return PoseLibraryPanel.poll(context)
# XXX temporary design. Should be like this instead: # XXX temporary design. Should be like this instead:
# bl_asset_traits = {'ACTION'} # bl_asset_traits = {"Action"}
@classmethod @classmethod
def asset_poll__(cls, asset: AssetHandle) -> bool: def asset_poll__(cls, asset: AssetHandle) -> bool:
return asset.file_data.id_type == 'ACTION' return asset.file_data.id_type == 'ACTION'