From 954cd0908670cd6146cd377368ac9c820ba667fc Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 20:03:10 +0200 Subject: [PATCH] Update background validation for vertical gradient mode --- src/document/scene-document-validation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/scene-document-validation.ts b/src/document/scene-document-validation.ts index 1cf27eaf..8642cb96 100644 --- a/src/document/scene-document-validation.ts +++ b/src/document/scene-document-validation.ts @@ -93,7 +93,7 @@ function validateWorldSettings(world: WorldSettings, document: SceneDocument, di ) ); } - } else { + } else if (world.background.mode === "verticalGradient") { if (!isHexColorString(world.background.topColorHex)) { diagnostics.push( createDiagnostic( @@ -115,7 +115,7 @@ function validateWorldSettings(world: WorldSettings, document: SceneDocument, di ) ); } - } else if (world.background.mode === "image") { + } else { if (typeof world.background.assetId !== "string" || world.background.assetId.trim().length === 0) { diagnostics.push( createDiagnostic(