Pose Library: Update to use the asset shelf (when enabled) #104546
@ -48,10 +48,8 @@ class VIEW3D_AST_pose_library(bpy.types.AssetShelf):
|
|||||||
layout.operator("poselib.apply_pose_asset", text="Apply Pose").flipped = False
|
layout.operator("poselib.apply_pose_asset", text="Apply Pose").flipped = False
|
||||||
layout.operator("poselib.apply_pose_asset", text="Apply Pose Flipped").flipped = True
|
layout.operator("poselib.apply_pose_asset", text="Apply Pose Flipped").flipped = True
|
||||||
|
|
||||||
old_op_ctx = layout.operator_context
|
with operator_context(layout, 'INVOKE_DEFAULT'):
|
||||||
layout.operator_context = 'INVOKE_DEFAULT'
|
layout.operator("poselib.blend_pose_asset", text="Blend Pose")
|
||||||
props = layout.operator("poselib.blend_pose_asset", text="Blend Pose")
|
|
||||||
layout.operator_context = old_op_ctx
|
|
||||||
|
|
||||||
layout.separator()
|
layout.separator()
|
||||||
props = layout.operator("poselib.pose_asset_select_bones", text="Select Pose Bones")
|
props = layout.operator("poselib.pose_asset_select_bones", text="Select Pose Bones")
|
||||||
|
Loading…
Reference in New Issue
Block a user