diff --git a/ViewModels/MainViewModel.cs b/ViewModels/MainViewModel.cs index 33e7667..5817f58 100644 --- a/ViewModels/MainViewModel.cs +++ b/ViewModels/MainViewModel.cs @@ -107,6 +107,21 @@ public partial class MainViewModel : ViewModelBase { if (e.PropertyName == nameof(SceneElement.UseDefaultBackground)) { + // ⛔ Turning the default back ON has to RE-STAMP the shipped art. Browse… writes the + // custom image into both CustomBackgroundPath AND AssetId, so without this the toggle + // flipped a bool while the preview kept showing the custom picture — the setting + // appeared to do nothing (creator report, 2026-11-01). + if (StagedScene is { } scene) + { + var background = scene.Elements.OfType().FirstOrDefault(s => s.IsBackground); + if (background is { UseDefaultBackground: true }) + { + background.CustomBackgroundPath = null; + background.AssetId = null; // lets the stamp run + StampDefaultBackgroundAsset(background, scene.Name); + } + } + if (StagedScene != null) _sceneGraph.InvalidateBake(StagedScene); UpdateBackgroundImage(); RefreshSnapshotsAsync();