Update delete-project-asset.ts to handle new cases
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user