Skip to content

Save Build / Load Build round-trip drops collections #734

Description

@Aymericr

Split out of #729 (review note). Materials had the same gap on the import side; #729 fixes materials — collections have it on both sides:

  • handleSaveBuild (packages/editor/src/components/ui/sidebar/panels/settings-panel/index.tsx) exports { nodes, rootNodeIds, installedPlugins } — no collections.
  • validateBuildJson (packages/core/src/validation/validate-build-json.ts) has no collections pass, so even a hand-added table is silently dropped.
  • handleConfirmImport doesn't pass collections to setScene — although setScene already accepts extra.collections, and the hosted loader round-trips them.

Repro: create a collection, Save Build, Load Build the same file → collection gone.

Fix shape mirrors #729: include collections in the saved sceneData, add a validated pass in validateBuildJson (per-entry skip + warning naming the skipped ids), pass through to setScene.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions