Fix all 6 Cut 3a Soul Pass #1 findings and add regression tests

This commit is contained in:
Meta Vens 2026-12-04 19:51:16 +01:00
commit b5f1bf7753
14 changed files with 677 additions and 74 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Before After
Before After

View file

@ -1154,7 +1154,14 @@ def _extract_mechanisms_from_blend_raw(root_name: str = "Pelvis") -> dict[str, A
for obj in sorted(bpy.data.objects, key=lambda o: o.name):
if obj.get("kit_part") != "ram" or obj.parent is None:
continue
close_to = bpy.data.objects.get(str(obj.get("kit_close_to", "")))
raw_close = obj.get("kit_close_to")
if raw_close is None:
continue
close_to = (
raw_close
if isinstance(raw_close, bpy.types.Object)
else bpy.data.objects.get(raw_close.name if hasattr(raw_close, "name") else str(raw_close))
)
if close_to is None:
continue
params = json.loads(str(obj.get("kit_params", "{}")))