Add entity state validation to point and spot light entities

This commit is contained in:
2026-04-12 03:34:18 +02:00
parent 6794c53e52
commit 7093032034

View File

@@ -576,6 +576,8 @@ function validatePointLightEntity(
path: string,
diagnostics: SceneDiagnostic[]
) {
validateAuthoredEntityState(entity, path, diagnostics);
if (!isFiniteVec3(entity.position)) {
diagnostics.push(
createDiagnostic(
@@ -626,6 +628,8 @@ function validateSpotLightEntity(
path: string,
diagnostics: SceneDiagnostic[]
) {
validateAuthoredEntityState(entity, path, diagnostics);
if (!isFiniteVec3(entity.position)) {
diagnostics.push(
createDiagnostic(