# `Events['scene-model:changed']`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Property of [`Events`](Events.md) · stable · since 2.0.0

```ts
'scene-model:changed': {
  readonly cause: Cause;
  readonly model: DeepReadonly<SceneModel>;
};
```

`model` carries no key material: merge its placement, `enabled` and group selections into your own document by `nodeId`; never save it as is. It is the whole model as of this commit, which can predate a newer document of yours ([`Cause.seq`](Cause.seq.md)): a store that writes the model too merges only what each commit changed, 'committed''s `patch` (the [`setSceneModel`](Writer.setSceneModel.md) sync example). An undo or redo can add or remove nodes: a store that owns structure rebuilds it from the restored checkpoint first.

## Fields

<a id="cause"></a>
### `cause`

```ts
readonly cause: Cause;
```

<a id="model"></a>
### `model`

```ts
readonly model: DeepReadonly<SceneModel>;
```

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `scene-model:changed` names no product |
| 2. A precedent | not recorded: no ledger row (coverage.json) names this member or its owner |
| 3. Two apps, or labs | pass: 21 apps (fleet cross-check: app-04c2774145, app-0c773a4ee3, app-37356bf09f, app-378d190f1b, app-4762caacdc, app-4fd23bc869, app-822bb9d6aa, app-8675b3225c and 13 more) |
| 4. The cheaper fix first | not recorded per member (Appendix B decides it per need) |
