Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-11-16 20:01:49 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-11-16 20:01:49 +0300
commitd1265dc6aa12177b62a72cea418f14d145bf2ba9 (patch)
treeaf1f1772fc552aabc19208b6842fe480f5896580
parent287a84b2056700a6d2543000fdaaf9adf1b11caf (diff)
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.
-rw-r--r--pose_library/pose_creation.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pose_library/pose_creation.py b/pose_library/pose_creation.py
index 12293e33..b2fbb4dd 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(