Pose Library: Update to use the asset shelf (when enabled) #104546
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user