auto-git:
[change] src/document/scene-document-validation.ts
This commit is contained in:
@@ -724,9 +724,21 @@ function validateWorldSettings(
|
|||||||
function validateWorldTimePhaseProfile(
|
function validateWorldTimePhaseProfile(
|
||||||
profile: WorldTimePhaseProfile,
|
profile: WorldTimePhaseProfile,
|
||||||
diagnostics: SceneDiagnostic[],
|
diagnostics: SceneDiagnostic[],
|
||||||
|
document: SceneDocument | ProjectDocument,
|
||||||
path: string,
|
path: string,
|
||||||
label: string
|
label: string
|
||||||
) {
|
) {
|
||||||
|
validateWorldBackgroundSettings(
|
||||||
|
profile.background,
|
||||||
|
document,
|
||||||
|
diagnostics,
|
||||||
|
`${path}.background`,
|
||||||
|
`${label} background`,
|
||||||
|
{
|
||||||
|
allowEmptyImageAssetId: true
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
if (!isHexColorString(profile.skyTopColorHex)) {
|
if (!isHexColorString(profile.skyTopColorHex)) {
|
||||||
diagnostics.push(
|
diagnostics.push(
|
||||||
createDiagnostic(
|
createDiagnostic(
|
||||||
|
|||||||
Reference in New Issue
Block a user