Pose Library: Update to use the asset shelf (when enabled) #104546
@ -38,10 +38,8 @@ class VIEW3D_AST_pose_library(bpy.types.AssetShelf):
|
|||||||
def poll(cls, context: Context) -> bool:
|
def poll(cls, context: Context) -> bool:
|
||||||
return PoseLibraryPanel.poll(context)
|
return PoseLibraryPanel.poll(context)
|
||||||
|
|
||||||
# XXX temporary design. Should be like this instead:
|
|
||||||
# bl_asset_traits = {"Action"}
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def asset_poll_temp_api(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'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user