feat(新功能):

fix(修复bug):  修复配饰位置异常
docs(文档变更):
refactor(重构):
test(增加测试):
This commit is contained in:
zhh
2025-09-16 16:50:00 +08:00
parent 633a6b8618
commit 80fed45b16
3 changed files with 11 additions and 2 deletions

View File

@@ -58,6 +58,15 @@ def organize_clothing(layer):
def organize_accessories(layer):
# 起始坐标
start_point = (0, 0)
layer['clothes_keypoint'] = {
'accessories_left': [0, 0]
}
layer['body_point_test'] = {
'accessories_left': [0, 0]
}
start_point = calculate_start_point(layer['keypoint'], layer['scale'], layer['clothes_keypoint'], layer['body_point_test'], layer["offset"], layer["resize_scale"])
# 前片数据
front_layer = dict(priority=layer['priority'] if layer.get("layer_order", False) else PRIORITY_DICT.get(f'{layer["name"].lower()}_front', None),
name=f'{layer["name"].lower()}_front',