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 e102a4de55 - Show all commits

View File

@ -71,6 +71,15 @@ class VIEW3D_PT_pose_library(PoseLibraryPanel, Panel):
bl_category = "Animation"
bl_label = "Pose Library"
@classmethod
def poll(cls, context: Context) -> bool:
prefs = bpy.context.preferences
# Use Asset Shelf as UI instead of the old asset-view template in the sidebar.
if prefs.experimental.use_asset_shelf:
return False
return PoseLibraryPanel.poll(context)
def draw(self, context: Context) -> None:
layout = self.layout