Update delete-project-asset.ts to handle new cases

This commit is contained in:
2026-04-14 02:39:33 +02:00
parent d43394e39e
commit e8406dc544

View File

@@ -26,6 +26,7 @@ function removeInvalidatedInteractionLinks(
return false; return false;
case "playModelAnimation": case "playModelAnimation":
case "stopModelAnimation": case "stopModelAnimation":
case "setModelInstanceVisible":
return removedModelInstanceIds.has( return removedModelInstanceIds.has(
link.action.effect.target.modelInstanceId link.action.effect.target.modelInstanceId
); );
@@ -34,9 +35,15 @@ function removeInvalidatedInteractionLinks(
return silencedSoundEmitterIds.has( return silencedSoundEmitterIds.has(
link.action.effect.target.entityId link.action.effect.target.entityId
); );
case "setSoundVolume":
case "setInteractionEnabled": case "setInteractionEnabled":
case "setLightEnabled": case "setLightEnabled":
case "setLightIntensity": case "setLightIntensity":
case "setLightColor":
case "setAmbientLightIntensity":
case "setAmbientLightColor":
case "setSunLightIntensity":
case "setSunLightColor":
return false; return false;
} }
default: default: