From d1265dc6aa12177b62a72cea418f14d145bf2ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= <sybren@blender.org> Date: Tue, 16 Nov 2021 18:01:49 +0100 Subject: [PATCH] Pose library: remove unused parameter Remove an unused `context` parameter from `pose_library.pose_creation.create_pose_asset()`. Normally this wouldn't make it into the release branch, but this particular function could be the basis for custom pose library creation code, and thus it's good if it has a nicer API in the release. No functional changes. --- pose_library/pose_creation.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pose_library/pose_creation.py b/pose_library/pose_creation.py index 12293e334..b2fbb4dd4 100644 --- a/pose_library/pose_creation.py +++ b/pose_library/pose_creation.py @@ -302,7 +302,6 @@ class PoseActionCreator: def create_pose_asset( - context: Context, params: PoseCreationParams, ) -> Optional[Action]: """Create a single-frame Action containing only the pose of the given bones. @@ -334,7 +333,7 @@ def create_pose_asset_from_context(context: Context, new_asset_name: str) -> Opt new_asset_name, ) - return create_pose_asset(context, params) + return create_pose_asset(params) def copy_fcurves( -- GitLab