[Bf-extensions-cvs] [0e1ed106] asset-browser-poselib: Allow click+dragging on poses in the asset view to blend them

Julian Eisel noreply at git.blender.org
Wed Mar 31 17:57:54 CEST 2021


Commit: 0e1ed106dfd786f5f39f92120957b55a3f31b90e
Author: Julian Eisel
Date:   Wed Mar 31 16:29:26 2021 +0200
Branches: asset-browser-poselib
https://developer.blender.org/rBA0e1ed106dfd786f5f39f92120957b55a3f31b90e

Allow click+dragging on poses in the asset view to blend them

===================================================================

M	pose_library/gui.py

===================================================================

diff --git a/pose_library/gui.py b/pose_library/gui.py
index 46d57c79..d87884e7 100644
--- a/pose_library/gui.py
+++ b/pose_library/gui.py
@@ -47,7 +47,7 @@ class VIEW3D_PT_pose_library(Panel):
 
         if hasattr(layout, "template_asset_view"):
             workspace = context.workspace
-            layout.template_asset_view(
+            activate_op_props, drag_op_props = layout.template_asset_view(
                 "pose_assets",
                 workspace,
                 "active_asset_library",
@@ -57,7 +57,9 @@ class VIEW3D_PT_pose_library(Panel):
                 "active_pose_asset_index",
                 filter_id_types={"filter_action"},
                 activate_operator="poselib.apply_pose_asset",
+                drag_operator="poselib.blend_pose_asset",
             )
+            drag_op_props.release_confirm = True
 
 
 class ASSETBROWSER_PT_pose_library_usage(asset_utils.AssetBrowserPanel, Panel):



More information about the Bf-extensions-cvs mailing list