[Bf-extensions-cvs] [fdfd24de] master: Pose Libraries: Remove now unnecessary asset function parameter

Julian Eisel noreply at git.blender.org
Wed Nov 30 19:47:14 CET 2022


Commit: fdfd24de034d4bba4fb67731d0aae81dc4940239
Author: Julian Eisel
Date:   Wed Nov 30 19:45:35 2022 +0100
Branches: master
https://developer.blender.org/rBAfdfd24de034d4bba4fb67731d0aae81dc4940239

Pose Libraries: Remove now unnecessary asset function parameter

This parameter is optional, deprecated and ignored since rBccc9eef1b927.

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

M	pose_library/operators.py

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

diff --git a/pose_library/operators.py b/pose_library/operators.py
index 08f7c56a..c498f2d9 100644
--- a/pose_library/operators.py
+++ b/pose_library/operators.py
@@ -333,9 +333,8 @@ class PoseAssetUser:
         pass
 
     def _load_and_use_pose(self, context: Context) -> Set[str]:
-        asset_library_ref = context.asset_library_ref
         asset = context.asset_file_handle
-        asset_lib_path = bpy.types.AssetHandle.get_full_library_path(asset, asset_library_ref)
+        asset_lib_path = bpy.types.AssetHandle.get_full_library_path(asset)
 
         if not asset_lib_path:
             self.report(  # type: ignore



More information about the Bf-extensions-cvs mailing list