Fix the hip/thigh collapse and knee pinch: rigid thigh/shin with a short knee blend
This commit is contained in:
1 parent
36576a023a
commit
359bb9a8c7
15 files changed
+11
-3
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 57 KiB |
Binary file not shown.
Binary file not shown.
+11
-3
@@ -676,9 +676,17 @@ def _auto_weights(obj, layout, rigid=None):
|
||||
if abs(p.x) > 0.23:
|
||||
allowed.remove("Spine")
|
||||
elif p.z < 0.80:
|
||||
allowed = ["Hips", f"Hip{side}", f"Knee{side}"]
|
||||
if p.z < 0.66:
|
||||
allowed.remove("Hips")
|
||||
# Legs: keep the shin rigid to the knee and the thigh rigid to the
|
||||
# hip, with a short blend only at the knee joint, so deep flexion
|
||||
# (seated) no longer collapses the thigh or pinches the knee.
|
||||
if p.z < 0.28:
|
||||
allowed = [f"Knee{side}"]
|
||||
elif p.z < 0.34:
|
||||
allowed = [f"Hip{side}", f"Knee{side}"]
|
||||
elif p.z < 0.62:
|
||||
allowed = [f"Hip{side}"]
|
||||
else:
|
||||
allowed = ["Hips", f"Hip{side}"]
|
||||
elif p.z > 1.40:
|
||||
allowed = ["Spine", "Neck", "Head"]
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user