Pose Library: Update to use the asset shelf (when enabled) #104546
@ -73,7 +73,7 @@ class VIEW3D_PT_pose_library(PoseLibraryPanel, Panel):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context: Context) -> bool:
|
def poll(cls, context: Context) -> bool:
|
||||||
prefs = bpy.context.preferences
|
prefs = context.preferences
|
||||||
# Use Asset Shelf as UI instead of the old asset-view template in the sidebar.
|
# Use Asset Shelf as UI instead of the old asset-view template in the sidebar.
|
||||||
if prefs.experimental.use_asset_shelf:
|
if prefs.experimental.use_asset_shelf:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user