Add validation for unsupported actor routine effects in scene controls

This commit is contained in:
2026-04-14 13:43:01 +02:00
parent 639e919e0b
commit 14afd6a342

View File

@@ -3103,6 +3103,17 @@ function validateControlEffect(
);
}
return;
case "playActorAnimation":
case "followActorPath":
diagnostics.push(
createDiagnostic(
"error",
"unsupported-scene-control-actor-routine-effect",
"Actor animation and actor path routine effects are scheduler-owned in this slice and are not supported on scene interaction control actions.",
`${path}.type`
)
);
return;
case "playModelAnimation": {
const targetModelInstance =
document.modelInstances[effect.target.modelInstanceId];