File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Assets/MRTK/SDK/Features/UX/Interactable/Scripts Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1302,7 +1302,7 @@ protected IEnumerator GlobalVisualReset(float time)
1302
1302
yield return new WaitForSeconds ( time ) ;
1303
1303
1304
1304
HasVoiceCommand = false ;
1305
- if ( ! HasFocus )
1305
+ if ( HasFocus && focusingPointers . Count == 0 )
1306
1306
{
1307
1307
HasFocus = false ;
1308
1308
}
@@ -1513,13 +1513,11 @@ public void OnSpeechKeywordRecognized(SpeechEventData eventData)
1513
1513
1514
1514
if ( eventData . Command . Keyword == VoiceCommand && ( ! VoiceRequiresFocus || HasFocus ) && CanInteract ( ) )
1515
1515
{
1516
- bool hadFocus = HasFocus ;
1517
1516
StartGlobalVisual ( true ) ;
1518
1517
HasVoiceCommand = true ;
1519
1518
SendVoiceCommands ( VoiceCommand , 0 , 1 ) ;
1520
1519
TriggerOnClick ( ) ;
1521
1520
eventData . Use ( ) ;
1522
- HasFocus = hadFocus ;
1523
1521
}
1524
1522
}
1525
1523
You can’t perform that action at this time.
0 commit comments