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:
parent
2b053b34c2
commit
87dc0f013f
1 changed files with 4 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue