Add check for verticalGradient mode in cloneWorldBackgroundSettings

This commit is contained in:
2026-03-31 19:57:28 +02:00
parent 44f094e637
commit 63fcd7c48c

View File

@@ -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",