Capture Ship Lines frames the ship as Package does, so kit and Grease Pencil lines land in ship.glb's frame

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-10-22 16:54:13 +02:00
commit 87dc0f013f

View file

@ -545,6 +545,10 @@ class AETHERIA_OT_capture_ship_lines(bpy.types.Operator):
cultlib = _brokkr_cultlib(context)
if read(path, cultlib).ship.body[0] != collection["aetheria.id"]:
raise ValueError("The bound collection ID does not match its .cc ship ID")
saved_shape, _, _ = read_layout(path, cultlib)
root = _ship_root(collection)
if root is not None: # the frame Package would write the model in, so the lines match ship.glb
_frame_ship(context, collection, root, path, saved_shape)
lines = _schematic_lines(context, collection)
if lines is None:
raise ValueError("No schematic lines were captured; the ship record was not changed")