fix: Aermel-Skinning mit acht Bone-Influences
- Ursache: glTF-Export trimmte auf vier Einfluesse; Godot liess die Aermel an Schulter und Ellbogen kollabieren - export_all_influences=True fuer Produktion und Rotoscoping - v004-Asset mit JOINTS_1/WEIGHTS_1, Manifest, Sync und FTP aktualisiert - Manifest-Test prueft die 8-Bone-Gewichte (57 Assertions) - 1189 Assertions gesamt, Doku und Findings aktualisiert
This commit is contained in:
parent
894f3d950d
commit
c0cc2b29f7
10 changed files with 180 additions and 33 deletions
|
|
@ -160,6 +160,7 @@ def export_clips(args: argparse.Namespace) -> None:
|
|||
export_animations=True,
|
||||
export_animation_mode="ACTIONS",
|
||||
export_def_bones=True,
|
||||
export_all_influences=True,
|
||||
export_force_sampling=True,
|
||||
export_bake_animation=True,
|
||||
export_anim_single_armature=True,
|
||||
|
|
@ -412,6 +413,17 @@ def _read_glb_animations(path: str) -> list[dict]:
|
|||
document = json.loads(
|
||||
data[json_chunk[1] : json_chunk[1] + json_chunk[2]].decode("utf-8")
|
||||
)
|
||||
|
||||
meshes = document.get("meshes", [])
|
||||
if meshes:
|
||||
attributes = meshes[0].get("primitives", [{}])[0].get("attributes", {})
|
||||
print("EXPORT_ATTRIBUTES", list(attributes.keys()))
|
||||
if "JOINTS_1" not in attributes:
|
||||
print(
|
||||
"WARNUNG: Nur 4 Bone-Influences exportiert; "
|
||||
"Ärmel können kollabieren."
|
||||
)
|
||||
|
||||
result = []
|
||||
for animation in document.get("animations", []):
|
||||
duration = 0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue