diff --git a/src/document/world-settings.ts b/src/document/world-settings.ts index 9a52dbdf..b9fc9299 100644 --- a/src/document/world-settings.ts +++ b/src/document/world-settings.ts @@ -78,11 +78,13 @@ export function cloneWorldBackgroundSettings(background: WorldBackgroundSettings }; } - return { - mode: "verticalGradient", - topColorHex: background.topColorHex, - bottomColorHex: background.bottomColorHex - }; + if (background.mode === "verticalGradient") { + return { + mode: "verticalGradient", + topColorHex: background.topColorHex, + bottomColorHex: background.bottomColorHex + }; + } return { mode: "image",