Offer voice actions on whichever globe has the capability they need instead of refusing them without a Cesium viewer

This commit is contained in:
German Khokhlov committed 2026-11-03 22:42:25 +04:00
1 parent b20579b06a
commit 59a2e31aa8
5 files changed
+390 -110

No files matched your search

+2 -2
View File
@@ -169,8 +169,8 @@ export function createSceneVoice(options) {
/**
* Compose the standalone action runner with the voice controls, on the globe
* `engine` (by default the one registered for `options.viewer`). Without a
* viewer (the Navara engine) the runner refuses the viewer-only tools.
* `engine` (by default the one registered for `options.viewer`). The runner
* checks each action against the capabilities of the attached scene.
*/
export function initGevVoiceCommands(options) {
const voice = createSceneVoice(options);