diff --git a/tools/blender/aetheria_ships/__init__.py b/tools/blender/aetheria_ships/__init__.py index cb54fb84b..fb541b905 100644 --- a/tools/blender/aetheria_ships/__init__.py +++ b/tools/blender/aetheria_ships/__init__.py @@ -439,6 +439,10 @@ def _save_layout(context, collection, state): shutil.rmtree(folder, ignore_errors=True) raise state.versions = json.dumps(outcome["versions"]) + # The store minted an element id for every row made here: take them, so the next push names these rows, not new ones. + elements = {row["mount"]: row["element"] for row in _open(context, path)["layout"]["hardpoints"]} + for hp in state.hardpoints: + hp.element = elements[hp.mount_id] if pending: del collection["aetheria.pending"] _redraw_grid(collection, state)