Add rank, friends, fishing, and camp treasure with T2 studio models and skill presentation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
udx
2026-10-21 23:01:31 +08:00
co-authored by Cursor
parent 89e0fa246f
commit 079313fb06
677 changed files with 395371 additions and 9692 deletions
+3
View File
@@ -218,8 +218,11 @@ def main():
for i in part:
geodesic[i]=min(geodesic[j]+(points[i]-points[j]).length for j in main)
target=low.vertex_groups[rule['bone']];affected=[]
# Optional normalized box: on a re-topologised mesh the same falloff can leak across the body.
within=rule.get('within')
for i,distance in enumerate(geodesic):
if distance>=fade:continue
if within and any(not within[0][c]<=points[i][c]<=within[1][c] for c in range(3)):continue
weight=1 if distance<=full else (fade-distance)/(fade-full)
weight=weight*weight*(3-2*weight)
previous={g.group:g.weight for g in low.data.vertices[i].groups}