From aab6654cc127ef167e5bf6b24f0bc6f4d48fc6a1 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 10 Oct 2026 09:52:51 +0200 Subject: [PATCH] smoke_frame: a Grid placed for another size is removed after a resize Builds: yes. Co-Authored-By: Claude Opus 5.5 --- tools/blender/tests/smoke_frame.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/blender/tests/smoke_frame.py b/tools/blender/tests/smoke_frame.py index d9cd6a805..f07f9ac2b 100644 --- a/tools/blender/tests/smoke_frame.py +++ b/tools/blender/tests/smoke_frame.py @@ -309,6 +309,11 @@ def main(): cell.occupied = False result, message = run(bpy.ops.aetheria.save_ship_layout) require(result == {"FINISHED"} and grid_faces() == faces - 1, "Toggling a cell and Save did not redraw the Grid") + state.new_width = state.width + 1 # a layout resized after the grid was placed: the placement no longer fits it + bpy.ops.aetheria.resize_ship_layout() + result, message = run(bpy.ops.aetheria.save_ship_layout) + require(result == {"FINISHED"} and bpy.data.objects.get("Grid") is None, + "A Grid placed for another size is still drawn after the layout was resized") print("PASS 4 hardpoints and save ok") # Pass 5: meshes outside Ship Root stop Flip Nose and Rasterise; parented, the flip moves the nub's cells.